Spawnable->spawnToAll() now uses the actual chunk instead of the entire level to spawn

This commit is contained in:
Shoghi Cervantes 2014-10-07 12:50:53 +02:00
parent e346d245e2
commit 5fb205493a

View File

@ -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);
}