Merge branch 'release/3.5'

This commit is contained in:
Dylan K. Taylor 2018-12-26 22:26:44 +00:00
commit ba33d8340a

View File

@ -74,6 +74,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);