mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 21:19:44 +00:00
Drop boots on death
This commit is contained in:
parent
8665035381
commit
2b920033ff
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +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 < 4; $re++){
|
||||||
$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…
Add table
Add a link
Reference in a new issue