Skip to content

Commit

Permalink
Revert "check equals"
Browse files Browse the repository at this point in the history
This reverts commit e3c329d.
  • Loading branch information
dexdurable committed Sep 22, 2020
1 parent 2b29a10 commit 7004c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pocketmine/inventory/SimpleTransactionGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit 7004c03

Please sign in to comment.