Check to see if the player can start using the Releasable item. (#4532)

This commit is contained in:
Rush2929
2021-11-02 23:36:16 +09:00
committed by GitHub
parent 34ea199fb0
commit ede4157814
6 changed files with 24 additions and 1 deletions

View File

@ -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;
}