diff --git a/src/pocketmine/tile/ContainerTrait.php b/src/pocketmine/tile/ContainerTrait.php index cf9558195..e6df4951d 100644 --- a/src/pocketmine/tile/ContainerTrait.php +++ b/src/pocketmine/tile/ContainerTrait.php @@ -47,6 +47,7 @@ trait ContainerTrait{ $inventoryTag = $this->getNBT()->getListTag(Container::TAG_ITEMS); $inventory = $this->getRealInventory(); + /** @var CompoundTag $itemNBT */ foreach($inventoryTag as $itemNBT){ $inventory->setItem($itemNBT->getByte("Slot"), Item::nbtDeserialize($itemNBT)); }