Skip to content

Commit

Permalink
check equals
Browse files Browse the repository at this point in the history
  • Loading branch information
dexdurable committed Aug 31, 2020
1 parent 805c5ae commit e3c329d
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 @@ -186,7 +186,7 @@ public function squashDuplicateSlotChanges() {
unset($this->transactions[spl_object_hash($transaction)]);
}

if(!$targetItem->equalsExact($sourceItem)){
if(!$targetItem->equals($sourceItem) || $targetItem->getCount != $sourceItem->getCount()){
$this->addTransaction(new BaseTransaction($inventory, $slot, $sourceItem, $targetItem));
}
}
Expand Down

0 comments on commit e3c329d

Please sign in to comment.