Fixed player viewer list including themselves

This commit is contained in:
Shoghi Cervantes 2014-11-03 11:29:01 +01:00
parent af4eb2ab1e
commit 29d1fd1fc8

View File

@ -245,7 +245,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
* @param Player $player
*/
public function spawnTo(Player $player){
if($this->spawned === true and $this->dead !== true and $player->getLevel() === $this->level and $player->canSee($this)){
if($this->spawned === true and $this->dead !== true and $this !== $player and $player->getLevel() === $this->level and $player->canSee($this)){
parent::spawnTo($player);
}
}