mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 03:51:37 +00:00
Fixed derp x3
This commit is contained in:
@@ -467,7 +467,7 @@ class Player extends PlayerEntity{
|
||||
//Normal inventory
|
||||
$slotCount = (($this->gamemode & 0x01) === 0 ? PLAYER_SURVIVAL_SLOTS:PLAYER_CREATIVE_SLOTS) + 9;
|
||||
for($slot = 9; $slot < $slotCount; ++$slot){
|
||||
$item = $this->getSlot($count);
|
||||
$item = $this->getSlot($slot);
|
||||
$this->namedtag->Inventory[$slot] = new NBTTag_Compound(false, array(
|
||||
"Count" => new NBTTag_Byte("Count", $item->getCount()),
|
||||
"Damage" => new NBTTag_Short("Damage", $item->getMetadata()),
|
||||
|
Reference in New Issue
Block a user