mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
Fixed armor dropping twice
This commit is contained in:
@@ -85,10 +85,6 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
|||||||
foreach($this->inventory->getContents() as $item){
|
foreach($this->inventory->getContents() as $item){
|
||||||
$drops[] = $item;
|
$drops[] = $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($this->inventory->getArmorContents() as $item){
|
|
||||||
$drops[] = $item;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $drops;
|
return $drops;
|
||||||
|
Reference in New Issue
Block a user