diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index 2678764ef..96084bf1a 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -1081,45 +1081,6 @@ class Level implements ChunkManager, Metadatable{ } } - /** - * @param Vector3 $pos - */ - public function updateAround(Vector3 $pos){ - $x = (int) floor($pos->x); - $y = (int) floor($pos->y); - $z = (int) floor($pos->z); - - $this->server->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->getBlockAt($x, $y - 1, $z))); - if(!$ev->isCancelled()){ - $ev->getBlock()->onUpdate(self::BLOCK_UPDATE_NORMAL); - } - - $this->server->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->getBlockAt($x, $y + 1, $z))); - if(!$ev->isCancelled()){ - $ev->getBlock()->onUpdate(self::BLOCK_UPDATE_NORMAL); - } - - $this->server->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->getBlockAt($x - 1, $y, $z))); - if(!$ev->isCancelled()){ - $ev->getBlock()->onUpdate(self::BLOCK_UPDATE_NORMAL); - } - - $this->server->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->getBlockAt($x + 1, $y, $z))); - if(!$ev->isCancelled()){ - $ev->getBlock()->onUpdate(self::BLOCK_UPDATE_NORMAL); - } - - $this->server->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->getBlockAt($x, $y, $z - 1))); - if(!$ev->isCancelled()){ - $ev->getBlock()->onUpdate(self::BLOCK_UPDATE_NORMAL); - } - - $this->server->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->getBlockAt($x, $y, $z + 1))); - if(!$ev->isCancelled()){ - $ev->getBlock()->onUpdate(self::BLOCK_UPDATE_NORMAL); - } - } - /** * Schedules a block update to be executed after the specified number of ticks. * Blocks will be updated with the scheduled update type.