From 1730415643cedff907590e8123794644dc76afac Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 1 May 2019 14:43:11 -0400 Subject: [PATCH] Player: remove useless checks from spawnTo(), closes #2897 this was caused by changes on 4.0, but this code is nonetheless useless. --- src/pocketmine/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index f5021ac58..13738689f 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -555,7 +555,7 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener, * @param Player $player */ public function spawnTo(Player $player) : void{ - if($this->spawned and $player->spawned and $this->isAlive() and $player->isAlive() and $player->getLevel() === $this->level and $player->canSee($this) and !$this->isSpectator()){ + if($this->isAlive() and $player->isAlive() and $player->getLevel() === $this->level and $player->canSee($this) and !$this->isSpectator()){ parent::spawnTo($player); } }