mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
fixed varied size of ContainerSetContentPacket when writing
This commit is contained in:
parent
a97da0f719
commit
878fc5f74b
1 changed files with 3 additions and 1 deletions
|
|
@ -35,7 +35,9 @@ class ContainerSetContentPacket extends RakNetDataPacket{
|
||||||
foreach($this->hotbar as $slot){
|
foreach($this->hotbar as $slot){
|
||||||
$this->putInt($slot);
|
$this->putInt($slot);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
$this->putShort(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue