mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +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;
|
return false;
|
||||||
}elseif($item->getID() === 0 or $item->getCount() <= 0){
|
}elseif($item->getID() === 0 or $item->getCount() <= 0){
|
||||||
$this->clear($index, $source);
|
$this->clear($index, $source);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$holder = $this->getHolder();
|
$holder = $this->getHolder();
|
||||||
@ -426,4 +427,4 @@ abstract class BaseInventory implements Inventory{
|
|||||||
return $this->type;
|
return $this->type;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user