We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e346d24 commit 5fb2054Copy full SHA for 5fb2054
src/pocketmine/tile/Spawnable.php
@@ -58,7 +58,7 @@ public function spawnToAll(){
58
return;
59
}
60
61
- foreach($this->getLevel()->getPlayers() as $player){
+ foreach($this->getLevel()->getUsingChunk($this->chunk->getX(), $this->chunk->getZ()) as $player){
62
if($player->spawned === true){
63
$this->spawnTo($player);
64
0 commit comments