From 47c934cee2627ab2af4516ccbe0f20054fb5718a Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 21 Jul 2013 23:36:14 +0200 Subject: [PATCH] Reordered instructions --- src/Player.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Player.php b/src/Player.php index 72e06c653..2b2dc0809 100644 --- a/src/Player.php +++ b/src/Player.php @@ -266,6 +266,8 @@ class Player{ $this->directDataPacket(MC_DISCONNECT); $this->connected = false; $this->level->freeAllChunks($this); + $this->spawned = false; + $this->loggedIn = false; $this->buffer = null; unset($this->buffer); $this->recoveryQueue = array(); @@ -276,8 +278,6 @@ class Player{ $this->server->api->chat->broadcast($this->username." left the game"); } console("[INFO] \x1b[33m".$this->username."\x1b[0m[/".$this->ip.":".$this->port."] logged out due to ".$reason); - $this->spawned = false; - $this->loggedIn = false; $this->server->api->player->remove($this->CID); } }