From eef979db4c27588be8f267e21d76489ac3f9b989 Mon Sep 17 00:00:00 2001 From: Stephen Date: Thu, 7 Nov 2019 19:49:04 -0500 Subject: [PATCH] Switch to isUsingItem() I don't plan on using this, as you informed me on discord that I didn't need the extra step, and it's a BC break anyway --- src/pocketmine/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 82c0a6b808..d2dbd3c025 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2542,7 +2542,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ } } - if($this->startAction === -1){ + if(!$this->isUsingItem()){ $this->setUsingItem(true); return true; }