From c1ef5ba8ab0f1799bbf49d86fd7f56370ff87b0c Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 2 Aug 2019 17:10:58 +0100 Subject: [PATCH] Entity: remove redundant check from spawnToAll() --- src/entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entity/Entity.php b/src/entity/Entity.php index 38f12a692..8f19b3151 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -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){