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:
Dylan K. Taylor
2019-05-07 19:49:06 +01:00
parent 78bb6f4a0c
commit cf0c0e72a9
5 changed files with 6 additions and 24 deletions

View File

@ -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);
}
}