mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Assume the player is online when they are, uh, assumed to be online
the checks removed here should never be hit under normal circumstances. If they were hit, they'd just conceal bugs which would cause a crash to happen later anyway.
This commit is contained in:
@ -1630,9 +1630,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
return;
|
||||
}
|
||||
foreach($this->world->getViewersForPosition($this) as $player){
|
||||
if($player->isOnline()){
|
||||
$this->spawnTo($player);
|
||||
}
|
||||
$this->spawnTo($player);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user