1
0
mirror of https://github.com/pmmp/PocketMine-MP.git synced 2025-07-26 04:43:45 +00:00

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
This commit is contained in:
Stephen 2019-11-07 19:49:04 -05:00
parent 6166c90bfd
commit eef979db4c

@ -2542,7 +2542,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
} }
} }
if($this->startAction === -1){ if(!$this->isUsingItem()){
$this->setUsingItem(true); $this->setUsingItem(true);
return true; return true;
} }