mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
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:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user