diff --git a/src/pocketmine/tile/Chest.php b/src/pocketmine/tile/Chest.php index 2a7a16faa..1eb109b0d 100644 --- a/src/pocketmine/tile/Chest.php +++ b/src/pocketmine/tile/Chest.php @@ -70,6 +70,15 @@ class Chest extends Spawnable implements InventoryHolder, Container, Nameable{ $this->saveItems($nbt); } + public function getCleanedNBT() : ?CompoundTag{ + $tag = parent::getCleanedNBT(); + if($tag !== null){ + //TODO: replace this with a purpose flag on writeSaveData() + $tag->removeTag(self::TAG_PAIRX, self::TAG_PAIRZ); + } + return $tag; + } + public function close() : void{ if(!$this->closed){ $this->inventory->removeAllViewers(true);