mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
second array in ContainerSetContentPacket will be read no matter is windowid==0
This commit is contained in:
parent
878fc5f74b
commit
d6c57e4aa6
1 changed files with 4 additions and 5 deletions
|
|
@ -15,11 +15,10 @@ class ContainerSetContentPacket extends RakNetDataPacket{
|
||||||
for($s = 0; $s < $count and !$this->feof(); ++$s){
|
for($s = 0; $s < $count and !$this->feof(); ++$s){
|
||||||
$this->slots[$s] = $this->getSlot();
|
$this->slots[$s] = $this->getSlot();
|
||||||
}
|
}
|
||||||
if($this->windowid === 0){
|
|
||||||
$count = $this->getShort();
|
$count = $this->getShort();
|
||||||
for($s = 0; $s < $count and !$this->feof(); ++$s){
|
for($s = 0; $s < $count and !$this->feof(); ++$s){
|
||||||
$this->hotbar[$s] = $this->getInt();
|
$this->hotbar[$s] = $this->getInt();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue