fixed varied size of ContainerSetContentPacket when writing

This commit is contained in:
GameHerobrine 2026-03-08 08:04:09 +03:00
parent a97da0f719
commit 878fc5f74b

View file

@ -35,6 +35,8 @@ class ContainerSetContentPacket extends RakNetDataPacket{
foreach($this->hotbar as $slot){ foreach($this->hotbar as $slot){
$this->putInt($slot); $this->putInt($slot);
} }
}else{
$this->putShort(0);
} }
} }