mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 05:34:54 +00:00
Update BaseInventory.php
This commit is contained in:
parent
db8ac0b9cb
commit
df81b365e5
@ -126,6 +126,7 @@ abstract class BaseInventory implements Inventory{
|
||||
return false;
|
||||
}elseif($item->getID() === 0 or $item->getCount() <= 0){
|
||||
$this->clear($index, $source);
|
||||
return true;
|
||||
}
|
||||
|
||||
$holder = $this->getHolder();
|
||||
@ -426,4 +427,4 @@ abstract class BaseInventory implements Inventory{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user