mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
fixed potential loss of resources in hotbar if armor will break, damaging an item will be registred in expected slots
This commit is contained in:
parent
b272c1ec6a
commit
02a038a7f7
2 changed files with 9 additions and 4 deletions
|
|
@ -1566,7 +1566,7 @@ class Entity extends Position
|
|||
if($v2 < 1) $v2 = 1;
|
||||
|
||||
foreach($this->player->armor as $slot => $part){
|
||||
$part->hurtAndBreak($v2, $this->player);
|
||||
$part->hurtAndBreak($v2, $this->player, helditem: false);
|
||||
}
|
||||
$this->player->sendArmor();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue