Player: remove useless checks from spawnTo(), closes #2897

this was caused by changes on 4.0, but this code is nonetheless useless.
This commit is contained in:
Dylan K. Taylor 2019-05-01 14:43:11 -04:00
parent 293311569d
commit 1730415643

View File

@ -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);
}
}