Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Spawnable->spawnToAll() now uses the actual chunk instead of the enti…
Browse files Browse the repository at this point in the history
…re level to spawn
  • Loading branch information
shoghicp committed Oct 7, 2014
1 parent e346d24 commit 5fb2054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pocketmine/tile/Spawnable.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function spawnToAll(){
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);
}
Expand Down

0 comments on commit 5fb2054

Please sign in to comment.