mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
More use of Item->isNull()
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user