mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 15:19:56 +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{
|
public function spawnToAll() : void{
|
||||||
if($this->chunk === null or $this->closed){
|
if($this->closed){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
foreach($this->world->getViewersForPosition($this) as $player){
|
foreach($this->world->getViewersForPosition($this) as $player){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user