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

@@ -719,7 +719,7 @@
+ } catch (java.lang.InterruptedException ignored) {} // Paper
+ if (org.spigotmc.SpigotConfig.saveUserCacheOnStopOnly) {
+ MinecraftServer.LOGGER.info("Saving usercache.json");
+ this.getProfileCache().save();
+ this.getProfileCache().save(false); // Paper - Perf: Async GameProfileCache saving
+ }
+ // Spigot end