diff --git a/src/pocketmine/inventory/SimpleTransactionGroup.php b/src/pocketmine/inventory/SimpleTransactionGroup.php index e762b2232..7de276d43 100755 --- a/src/pocketmine/inventory/SimpleTransactionGroup.php +++ b/src/pocketmine/inventory/SimpleTransactionGroup.php @@ -181,7 +181,7 @@ public function squashDuplicateSlotChanges() { unset($this->transactions[spl_object_hash($transaction)]); } - if(!$targetItem->equals($sourceItem) || $targetItem->getCount != $sourceItem->getCount()){ + if(!$targetItem->equalsExact($sourceItem)){ $this->addTransaction(new BaseTransaction($inventory, $slot, $sourceItem, $targetItem)); } }