mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Merge branch 'release/3.5'
This commit is contained in:
commit
ba33d8340a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user