Conver High ItemID to Old ItemId

This commit is contained in:
yefengeeeeeeeeeee 2025-04-25 17:19:22 +08:00
parent 6b7563d8ea
commit fd23ba04ec
9 changed files with 36 additions and 10 deletions

View file

@ -35,7 +35,7 @@ class ContainerSetContentPacket extends RakNetDataPacket{
$this->putByte($this->windowid);
$this->putShort(count($this->slots));
foreach($this->slots as $slot){
$this->putSlot($slot);
$this->putSlot($this->PROTOCOL, $slot);
}
if($this->windowid === 0 and count($this->hotbar) > 0){
$this->putShort(count($this->hotbar));//null