Player: remove useless code from save()

This commit is contained in:
Dylan K. Taylor 2020-02-05 19:54:50 +00:00
parent 262728b091
commit dfc8a6ffdd

View File

@ -3573,7 +3573,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){
if($this->username != ""){
$this->server->saveOfflinePlayerData($this->username, $this->namedtag);
}
}