More use of Item->isNull()

This commit is contained in:
Dylan K. Taylor
2017-09-27 11:05:40 +01:00
parent c47f1f572c
commit 4b63a22f8c
2 changed files with 4 additions and 4 deletions

View File

@ -242,7 +242,7 @@ abstract class BaseInventory implements Inventory{
/** @var Item[] $slots */
$itemSlots = [];
foreach($slots as $slot){
if($slot->getId() !== 0 and $slot->getCount() > 0){
if(!$slot->isNull()){
$itemSlots[] = clone $slot;
}
}
@ -299,7 +299,7 @@ abstract class BaseInventory implements Inventory{
/** @var Item[] $slots */
$itemSlots = [];
foreach($slots as $slot){
if($slot->getId() !== 0 and $slot->getCount() > 0){
if(!$slot->isNull()){
$itemSlots[] = clone $slot;
}
}