diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index bb493742d..6ac2a80ac 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2945,9 +2945,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ $this->namedtag->setInt("playerGameType", $this->gamemode); $this->namedtag->setLong("lastPlayed", (int) floor(microtime(true) * 1000)); - if($this->username != "" and $this->namedtag instanceof CompoundTag){ - $this->server->saveOfflinePlayerData($this->username, $this->namedtag, $async); - } + $this->server->saveOfflinePlayerData($this->username, $this->namedtag, $async); } public function kill() : void{