mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 09:26:06 +00:00
Spawnable->spawnToAll() now uses the actual chunk instead of the entire level to spawn
This commit is contained in:
@ -58,7 +58,7 @@ abstract class Spawnable extends Tile{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($this->getLevel()->getPlayers() as $player){
|
foreach($this->getLevel()->getUsingChunk($this->chunk->getX(), $this->chunk->getZ()) as $player){
|
||||||
if($player->spawned === true){
|
if($player->spawned === true){
|
||||||
$this->spawnTo($player);
|
$this->spawnTo($player);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user