Async GameProfileCache saving

This commit is contained in:
Aikar
2016-05-16 20:47:41 -04:00
parent ba4eeb8a28
commit cda878cf64
3 changed files with 37 additions and 7 deletions

View File

@@ -170,7 +170,7 @@
DedicatedServer.LOGGER.info("Default game type: {}", dedicatedserverproperties.gamemode);
InetAddress inetaddress = null;
@@ -156,10 +246,23 @@
@@ -156,21 +246,34 @@
return false;
}
@@ -195,7 +195,11 @@
DedicatedServer.LOGGER.warn("To change this, set \"online-mode\" to \"true\" in the server.properties file.");
}
@@ -170,7 +273,7 @@
if (this.convertOldUsers()) {
- this.getProfileCache().save();
+ this.getProfileCache().save(false); // Paper - Perf: Async GameProfileCache saving
}
if (!OldUsersConverter.serverReadyAfterUserconversion(this)) {
return false;
} else {