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

@ -2355,7 +2355,7 @@ class Player{
$slot = $this->armor[$i];
if($slot->getID() !== AIR && $s->getID() === AIR){
$this->addItem($slot->getID(), $slot->getMetadata(), 1, false);
$this->addItem($slot->getID(), $slot->getMetadata(), $slot->count, false);
$this->armor[$i] = BlockAPI::getItem(AIR, 0, 0);
$packet->slots[$i] = 255;
}elseif($s->getID() !== AIR and $slot->getID() === AIR and ($sl = $this->hasItem($s->getID())) !== false){