mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Armor drop - tested
This commit is contained in:
parent
f32f379e97
commit
3d53b9eb3a
@ -167,9 +167,7 @@ class Entity extends Position{
|
|||||||
$inv[] = array($slot->getID(), $slot->getMetadata(), $slot->count);
|
$inv[] = array($slot->getID(), $slot->getMetadata(), $slot->count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for($re = 0; $re < 3; $re++)
|
for($re = 0; $re < 3; $re++){
|
||||||
{
|
|
||||||
//TODO: Test this
|
|
||||||
$slot = $this->player->getArmor($re);
|
$slot = $this->player->getArmor($re);
|
||||||
$this->player->setArmor($re, BlockAPI::getItem(AIR, 0, 0));
|
$this->player->setArmor($re, BlockAPI::getItem(AIR, 0, 0));
|
||||||
if($slot->getID() !== AIR and $slot->count > 0){
|
if($slot->getID() !== AIR and $slot->count > 0){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user