Fixed merge error

This commit is contained in:
Dylan K. Taylor 2023-05-06 17:29:59 +01:00
parent 5c7f4570b4
commit 7cdf6b0946
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -86,7 +86,7 @@ class SimpleInventory extends BaseInventory{
protected function getMatchingItemCount(int $slot, Item $test, bool $checkTags) : int{
$slotItem = $this->slots[$slot];
return $slotItem !== null && $slotItem->equals($test, $checkDamage, $checkTags) ? $slotItem->getCount() : 0;
return $slotItem !== null && $slotItem->equals($test, true, $checkTags) ? $slotItem->getCount() : 0;
}
public function isSlotEmpty(int $index) : bool{