SPIGOT-1050: Add a missing case in the disable usercache saving option

This commit is contained in:
Thinkofdeath 2015-07-23 21:43:27 +01:00
parent a5a657d88c
commit c9ff2e2b51
2 changed files with 10 additions and 3 deletions

View File

@ -31,6 +31,4 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ logCommands = getBoolean( "commands.log", true );
+ }
}
--
1.9.0.msysgit.0
--

View File

@ -27,6 +27,15 @@ diff --git a/src/main/java/net/minecraft/server/UserCache.java b/src/main/java/n
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/net/minecraft/server/UserCache.java
+++ b/src/main/java/net/minecraft/server/UserCache.java
@@ -0,0 +0,0 @@ public class UserCache {
this.c.put(gameprofile.getName().toLowerCase(Locale.ROOT), usercache_usercacheentry);
this.d.put(uuid, usercache_usercacheentry);
this.e.addFirst(gameprofile);
- this.c();
+ if( !org.spigotmc.SpigotConfig.saveUserCacheOnStopOnly ) this.c(); // Spigot - skip saving if disabled
}
public GameProfile getProfile(String s) {
@@ -0,0 +0,0 @@ public class UserCache {
}
}