Updated creative inventory data

some items will show wrong damage values due to a bug in meta handling on master
This commit is contained in:
Dylan K. Taylor
2017-06-02 11:00:36 +01:00
parent b6ae92e1a7
commit 2db6ea6b18
2 changed files with 576 additions and 43 deletions

View File

@ -53,11 +53,10 @@ class ContainerSetContentPacket extends DataPacket{
for($s = 0; $s < $count and !$this->feof(); ++$s){
$this->slots[$s] = $this->getSlot();
}
if($this->windowid === self::SPECIAL_INVENTORY){
$count = $this->getUnsignedVarInt();
for($s = 0; $s < $count and !$this->feof(); ++$s){
$this->hotbar[$s] = $this->getVarInt();
}
$hotbarCount = $this->getUnsignedVarInt(); //MCPE always sends this, even when it's not a player inventory
for($s = 0; $s < $hotbarCount and !$this->feof(); ++$s){
$this->hotbar[$s] = $this->getVarInt();
}
}