mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Tile: remove unnecessary removeTag() calls
these CompoundTags are now ephemeral, so it's not necessary to remove potential garbage from them anymore.
This commit is contained in:
@ -64,8 +64,6 @@ class Chest extends Spawnable implements InventoryHolder, Container, Nameable{
|
||||
if($this->isPaired()){
|
||||
$nbt->setInt(self::TAG_PAIRX, $this->pairX);
|
||||
$nbt->setInt(self::TAG_PAIRZ, $this->pairZ);
|
||||
}else{
|
||||
$nbt->removeTag(self::TAG_PAIRX, self::TAG_PAIRZ);
|
||||
}
|
||||
$this->saveName($nbt);
|
||||
$this->saveItems($nbt);
|
||||
|
Reference in New Issue
Block a user