From 5fb205493a09da1797643bf3a921a846567530c9 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 7 Oct 2014 12:50:53 +0200 Subject: [PATCH] Spawnable->spawnToAll() now uses the actual chunk instead of the entire level to spawn --- src/pocketmine/tile/Spawnable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/tile/Spawnable.php b/src/pocketmine/tile/Spawnable.php index 2bde53b47..4e62c94d2 100644 --- a/src/pocketmine/tile/Spawnable.php +++ b/src/pocketmine/tile/Spawnable.php @@ -58,7 +58,7 @@ abstract class Spawnable extends Tile{ return; } - foreach($this->getLevel()->getPlayers() as $player){ + foreach($this->getLevel()->getUsingChunk($this->chunk->getX(), $this->chunk->getZ()) as $player){ if($player->spawned === true){ $this->spawnTo($player); }