From 878fc5f74bfd667c2750f3bcf0d9fa0ca1e85cc0 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Sun, 8 Mar 2026 08:04:09 +0300 Subject: [PATCH] fixed varied size of ContainerSetContentPacket when writing --- src/network/protocol/packet/ContainerSetContentPacket.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/network/protocol/packet/ContainerSetContentPacket.php b/src/network/protocol/packet/ContainerSetContentPacket.php index a4afe1db..6451b717 100644 --- a/src/network/protocol/packet/ContainerSetContentPacket.php +++ b/src/network/protocol/packet/ContainerSetContentPacket.php @@ -35,7 +35,9 @@ class ContainerSetContentPacket extends RakNetDataPacket{ foreach($this->hotbar as $slot){ $this->putInt($slot); } + }else{ + $this->putShort(0); } } -} \ No newline at end of file +}