diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 9b59586ff..0021ef6fd 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2420,7 +2420,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ if($this->canInteract($blockVector->add(0.5, 0.5, 0.5), $this->isCreative() ? 13 : 7) and $this->level->useBreakOn($blockVector, $item, $this, true)){ if($this->isSurvival()){ - if(!$item->equalsExact($oldItem)){ + if(!$item->equalsExact($oldItem) and $oldItem->equalsExact($this->inventory->getItemInHand())){ $this->inventory->setItemInHand($item); $this->inventory->sendHeldItem($this->hasSpawned); }