Fixed #1889 Players drop their inventory when they die

This commit is contained in:
Shoghi Cervantes
2014-08-18 14:49:53 +02:00
parent 3c231118a6
commit 34711dc346
3 changed files with 26 additions and 0 deletions

View File

@ -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
*/