diff --git a/src/pocketmine/tile/Chest.php b/src/pocketmine/tile/Chest.php index a97760a4e1..a902a9dccd 100644 --- a/src/pocketmine/tile/Chest.php +++ b/src/pocketmine/tile/Chest.php @@ -152,8 +152,8 @@ class Chest extends Spawnable implements InventoryHolder, Container, Nameable{ $this->createPair($tile); - $this->spawnToAll(); - $tile->spawnToAll(); + $this->onChanged(); + $tile->onChanged(); $this->checkPairing(); return true; @@ -175,12 +175,12 @@ class Chest extends Spawnable implements InventoryHolder, Container, Nameable{ $tile = $this->getPair(); $this->namedtag->removeTag(self::TAG_PAIRX, self::TAG_PAIRZ); - $this->spawnToAll(); + $this->onChanged(); if($tile instanceof Chest){ $tile->namedtag->removeTag(self::TAG_PAIRX, self::TAG_PAIRZ); $tile->checkPairing(); - $tile->spawnToAll(); + $tile->onChanged(); } $this->checkPairing();