Fixed spawning problems because of packets

This commit is contained in:
Shoghi Cervantes
2014-02-07 18:03:11 +01:00
parent 84638098d0
commit ac3472eff4
7 changed files with 55 additions and 44 deletions

View File

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