mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Chest: remove pairx and pairz on blockpick, fixes #2612
This commit is contained in:
parent
5d47ea4337
commit
98f903783c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user