mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Merge pull request #2235 from nno88551/patch-2
Update BaseInventory.php
This commit is contained in:
commit
9e01e2ef49
@ -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