mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
SPIGOT-1050: Add a missing case in the disable usercache saving option
This commit is contained in:
parent
a5a657d88c
commit
c9ff2e2b51
@ -31,6 +31,4 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ logCommands = getBoolean( "commands.log", true );
|
||||
+ }
|
||||
}
|
||||
--
|
||||
1.9.0.msysgit.0
|
||||
|
||||
--
|
@ -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 {
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user