mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 23:15:29 +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);
|
$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{
|
public function close() : void{
|
||||||
if(!$this->closed){
|
if(!$this->closed){
|
||||||
$this->inventory->removeAllViewers(true);
|
$this->inventory->removeAllViewers(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user