BaseInventory: fix CS

This commit is contained in:
Dylan K. Taylor 2022-09-02 19:36:45 +01:00
parent a735a69870
commit 6866c86d39
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -134,6 +134,7 @@ abstract class BaseInventory implements Inventory{
return $slots;
}
public function first(Item $item, bool $exact = false) : int{
$count = $exact ? $item->getCount() : max(1, $item->getCount());
$checkDamage = $exact || !$item->hasAnyDamageValue();