diff --git a/src/pocketmine/tile/Chest.php b/src/pocketmine/tile/Chest.php index 5efcabdea..da0bf1995 100644 --- a/src/pocketmine/tile/Chest.php +++ b/src/pocketmine/tile/Chest.php @@ -29,9 +29,7 @@ use pocketmine\inventory\InventoryHolder; use pocketmine\item\Item; use pocketmine\level\Level; use pocketmine\math\Vector3; -use pocketmine\nbt\NBT; use pocketmine\nbt\tag\CompoundTag; -use pocketmine\nbt\tag\ListTag; use pocketmine\Player; class Chest extends Spawnable implements InventoryHolder, Container, Nameable{ @@ -192,8 +190,6 @@ class Chest extends Spawnable implements InventoryHolder, Container, Nameable{ } protected static function createAdditionalNBT(CompoundTag $nbt, Vector3 $pos, ?int $face = null, ?Item $item = null, ?Player $player = null) : void{ - $nbt->setTag(new ListTag("Items", [], NBT::TAG_Compound)); - if($item !== null and $item->hasCustomName()){ $nbt->setString("CustomName", $item->getCustomName()); } diff --git a/src/pocketmine/tile/Furnace.php b/src/pocketmine/tile/Furnace.php index 5353e3e00..56f3cb2e5 100644 --- a/src/pocketmine/tile/Furnace.php +++ b/src/pocketmine/tile/Furnace.php @@ -34,9 +34,7 @@ use pocketmine\item\Item; use pocketmine\item\ItemFactory; use pocketmine\level\Level; use pocketmine\math\Vector3; -use pocketmine\nbt\NBT; use pocketmine\nbt\tag\CompoundTag; -use pocketmine\nbt\tag\ListTag; use pocketmine\network\mcpe\protocol\ContainerSetDataPacket; use pocketmine\Player; @@ -238,8 +236,6 @@ class Furnace extends Spawnable implements InventoryHolder, Container, Nameable{ } protected static function createAdditionalNBT(CompoundTag $nbt, Vector3 $pos, ?int $face = null, ?Item $item = null, ?Player $player = null) : void{ - $nbt->setTag(new ListTag("Items", [], NBT::TAG_Compound)); - if($item !== null and $item->hasCustomName()){ $nbt->setString("CustomName", $item->getCustomName()); }