mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Check to see if the player can start using the Releasable item. (#4532)
This commit is contained in:
@ -1374,7 +1374,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
||||
$this->inventory->setItemInHand($item);
|
||||
}
|
||||
|
||||
$this->setUsingItem($item instanceof Releasable);
|
||||
$this->setUsingItem($item instanceof Releasable && $item->canStartUsingItem($this));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user