mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Fixed #1889 Players drop their inventory when they die
This commit is contained in:
@ -259,6 +259,13 @@ class PlayerInventory extends BaseInventory{
|
||||
return $armor;
|
||||
}
|
||||
|
||||
public function clearAll(){
|
||||
$limit = $this->getSize() + 4;
|
||||
for($index = 0; $index < $limit; ++$index){
|
||||
$this->clear($index);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Player|Player[] $target
|
||||
*/
|
||||
|
Reference in New Issue
Block a user