Skip to content

Commit

Permalink
Armor drop - tested
Browse files Browse the repository at this point in the history
  • Loading branch information
shoghicp committed Nov 23, 2013
1 parent f32f379 commit 3d53b9e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/world/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 3d53b9e

Please sign in to comment.