mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Improved unloaded tile entity handling
This commit is contained in:
@ -54,6 +54,10 @@ abstract class Spawnable extends Tile{
|
||||
}
|
||||
|
||||
public function spawnToAll(){
|
||||
if($this->closed){
|
||||
return;
|
||||
}
|
||||
|
||||
foreach($this->getLevel()->getPlayers() as $player){
|
||||
if($player->spawned === true){
|
||||
$this->spawnTo($player);
|
||||
|
Reference in New Issue
Block a user