From 7e539ec85a08bce40fdabc6f3f47444aaf9511ef Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Fri, 8 May 2015 15:38:51 +0200 Subject: [PATCH] Fixed invalid check --- 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 26d419f0e..129b60aec 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -313,7 +313,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{ * @param Player $player */ public function spawnTo(Player $player){ - if($this->spawned === true and $player->spawned === true and $this->isAlive() and $player->isAdventure() and $player->getLevel() === $this->level and $player->canSee($this) and !$this->isSpectator()){ + if($this->spawned and $player->spawned and $this->isAlive() and $player->isAlive() and $player->getLevel() === $this->level and $player->canSee($this) and !$this->isSpectator()){ parent::spawnTo($player); } }