From d6c57e4aa6b99b63ffa35a4d092bec74de829604 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Tue, 10 Mar 2026 21:50:47 +0300 Subject: [PATCH] second array in ContainerSetContentPacket will be read no matter is windowid==0 --- .../protocol/packet/ContainerSetContentPacket.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/network/protocol/packet/ContainerSetContentPacket.php b/src/network/protocol/packet/ContainerSetContentPacket.php index 6451b717..8d1fc165 100644 --- a/src/network/protocol/packet/ContainerSetContentPacket.php +++ b/src/network/protocol/packet/ContainerSetContentPacket.php @@ -15,11 +15,10 @@ class ContainerSetContentPacket extends RakNetDataPacket{ for($s = 0; $s < $count and !$this->feof(); ++$s){ $this->slots[$s] = $this->getSlot(); } - if($this->windowid === 0){ - $count = $this->getShort(); - for($s = 0; $s < $count and !$this->feof(); ++$s){ - $this->hotbar[$s] = $this->getInt(); - } + + $count = $this->getShort(); + for($s = 0; $s < $count and !$this->feof(); ++$s){ + $this->hotbar[$s] = $this->getInt(); } }