armor will actually be removed now

This commit is contained in:
GameHerobrine 2025-05-30 10:11:25 +03:00
parent 02a038a7f7
commit 294745fb09
3 changed files with 6 additions and 1 deletions

View file

@ -1567,6 +1567,7 @@ class Entity extends Position
foreach($this->player->armor as $slot => $part){
$part->hurtAndBreak($v2, $this->player, helditem: false);
if($part->count <= 0) $this->player->setArmor($slot, BlockAPI::getItem(0, 0, 0), send: false);
}
$this->player->sendArmor();
}