mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 17:41:46 +00:00
Fixed #1609
This commit is contained in:
parent
4a072b4163
commit
7ed6ac2341
@ -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"])
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user