Player: don't save data to disk on login

this is pointless, and it will get saved on disk on quit anyway.
This commit is contained in:
Dylan K. Taylor 2018-02-27 12:26:30 +00:00
parent f0535df96d
commit eb01dcaf60

View File

@ -1946,9 +1946,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
}
$this->namedtag->setLong("lastPlayed", (int) floor(microtime(true) * 1000));
if($this->server->getAutoSave()){
$this->server->saveOfflinePlayerData($this->username, $this->namedtag, true);
}
$this->sendPlayStatus(PlayStatusPacket::LOGIN_SUCCESS);