From 3d53b9eb3a0904bcabdf2e372e61f0ba0df78482 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 23 Nov 2013 11:06:01 +0100 Subject: [PATCH] Armor drop - tested --- src/world/Entity.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/world/Entity.php b/src/world/Entity.php index 373bbe6d164..b61328e787f 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -167,9 +167,7 @@ public function getDrops(){ $inv[] = array($slot->getID(), $slot->getMetadata(), $slot->count); } } - for($re = 0; $re < 3; $re++) - { - //TODO: Test this + for($re = 0; $re < 3; $re++){ $slot = $this->player->getArmor($re); $this->player->setArmor($re, BlockAPI::getItem(AIR, 0, 0)); if($slot->getID() !== AIR and $slot->count > 0){