This commit is contained in:
Shoghi Cervantes 2014-07-11 01:18:37 +02:00
parent 4a072b4163
commit 7ed6ac2341

View File

@ -689,11 +689,11 @@ class Server{
if(isset($nbt->Inventory[$itemSlot + 9])){ if(isset($nbt->Inventory[$itemSlot + 9])){
$item = $nbt->Inventory[$itemSlot + 9]; $item = $nbt->Inventory[$itemSlot + 9];
$nbt->Inventory[$slot] = new Compound(false, array( $nbt->Inventory[$slot] = new Compound(false, array(
new Short("id", $item->id), new Short("id", $item["id"]),
new Short("Damage", $item->Damage), new Short("Damage", $item["Damage"]),
new Byte("Count", $item->Count), new Byte("Count", $item["Count"]),
new Byte("Slot", $slot), new Byte("Slot", $slot),
new Byte("TrueSlot", $item->TrueSlot) new Byte("TrueSlot", $item["TrueSlot"])
)); ));
} }
} }