Entity: remove redundant check from spawnToAll()

This commit is contained in:
Dylan K. Taylor 2019-08-02 17:10:58 +01:00
parent cc4b2959a7
commit c1ef5ba8ab

View File

@ -1627,7 +1627,7 @@ abstract class Entity extends Location{
}
public function spawnToAll() : void{
if($this->chunk === null or $this->closed){
if($this->closed){
return;
}
foreach($this->world->getViewersForPosition($this) as $player){