mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 22:59:59 +00:00
Entity: remove redundant check from spawnToAll()
This commit is contained in:
parent
cc4b2959a7
commit
c1ef5ba8ab
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user