SPIGOT-1050: Add a missing case in the disable usercache saving option
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user