Skip to content

Commit 5fb2054

Browse files
committed
Spawnable->spawnToAll() now uses the actual chunk instead of the entire level to spawn
1 parent e346d24 commit 5fb2054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pocketmine/tile/Spawnable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function spawnToAll(){
5858
return;
5959
}
6060

61-
foreach($this->getLevel()->getPlayers() as $player){
61+
foreach($this->getLevel()->getUsingChunk($this->chunk->getX(), $this->chunk->getZ()) as $player){
6262
if($player->spawned === true){
6363
$this->spawnTo($player);
6464
}

0 commit comments

Comments
 (0)