mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
A possible fix for broken items not being deleted from player's inventory.
This commit is contained in:
parent
af1bfbae20
commit
6bc6dd516f
1 changed files with 1 additions and 1 deletions
|
|
@ -1828,7 +1828,7 @@ class Player{
|
||||||
$target->harm($damage, $this->eid);
|
$target->harm($damage, $this->eid);
|
||||||
if($slot->isTool() === true and ($this->gamemode & 0x01) === 0){
|
if($slot->isTool() === true and ($this->gamemode & 0x01) === 0){
|
||||||
if($slot->useOn($target) and $slot->getMetadata() >= $slot->getMaxDurability()){
|
if($slot->useOn($target) and $slot->getMetadata() >= $slot->getMaxDurability()){
|
||||||
$this->setSlot($this->slot, new Item(AIR, 0, 0), false);
|
$this->removeItem($slot->getID(), $slot->getMetadata(), $slot->count, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue