diff --git a/src/pocketmine/inventory/BaseInventory.php b/src/pocketmine/inventory/BaseInventory.php index 18a91ab98..6f32492fc 100644 --- a/src/pocketmine/inventory/BaseInventory.php +++ b/src/pocketmine/inventory/BaseInventory.php @@ -253,11 +253,9 @@ abstract class BaseInventory implements Inventory{ public function canAddItem(Item $item) : bool{ $item = clone $item; - $checkDamage = !$item->hasAnyDamageValue(); - $checkTags = $item->hasCompoundTag(); for($i = 0, $size = $this->getSize(); $i < $size; ++$i){ $slot = $this->getItem($i); - if($item->equals($slot, $checkDamage, $checkTags)){ + if($item->equals($slot)){ if(($diff = $slot->getMaxStackSize() - $slot->getCount()) > 0){ $item->setCount($item->getCount() - $diff); }