From 93443992be5a1810d8cd658862d3ecc4825d0082 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 30 Oct 2017 11:50:02 +0000 Subject: [PATCH] Fixed chests not getting updated properly on pair/unpair, close #1514 it wasn't clearing spawn compound caches or chunk caches --- src/pocketmine/tile/Chest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();