mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 23:15:29 +00:00
Fixed armor dropping twice
This commit is contained in:
parent
98340522d9
commit
0bc9a9bdab
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user