mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-03 18:42:37 +00:00
Spawnable->spawnToAll() now uses the actual chunk instead of the entire level to spawn
This commit is contained in:
parent
e346d245e2
commit
5fb205493a
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user