mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Reset player's armors after death UNTESTED. Fixes #896.
This commit is contained in:
@@ -169,7 +169,7 @@ class Entity extends Position{
|
||||
}
|
||||
for($re = 0; $re < 3; $re++)
|
||||
{
|
||||
//TODO: Test this.
|
||||
//TODO: Test this
|
||||
$slot = $this->player->getArmor($re);
|
||||
$this->player->setArmor($re, BlockAPI::getItem(AIR, 0, 0));
|
||||
if($slot->getID() !== AIR and $slot->count > 0){
|
||||
|
Reference in New Issue
Block a user