diff --git a/src/pocketmine/tile/Chest.php b/src/pocketmine/tile/Chest.php index a2f31931d..7bee9843b 100644 --- a/src/pocketmine/tile/Chest.php +++ b/src/pocketmine/tile/Chest.php @@ -77,6 +77,7 @@ class Chest extends Spawnable implements InventoryHolder, Container, Nameable{ } public function saveNBT() : void{ + parent::saveNBT(); $this->namedtag->setTag(new ListTag("Items", [], NBT::TAG_Compound)); for($index = 0; $index < $this->getSize(); ++$index){ $this->setItem($index, $this->inventory->getItem($index)); diff --git a/src/pocketmine/tile/Furnace.php b/src/pocketmine/tile/Furnace.php index 4730d7da8..d17518e75 100644 --- a/src/pocketmine/tile/Furnace.php +++ b/src/pocketmine/tile/Furnace.php @@ -107,6 +107,7 @@ class Furnace extends Spawnable implements InventoryHolder, Container, Nameable{ } public function saveNBT() : void{ + parent::saveNBT(); $this->namedtag->setTag(new ListTag("Items", [], NBT::TAG_Compound)); for($index = 0; $index < $this->getSize(); ++$index){ $this->setItem($index, $this->inventory->getItem($index));