From c9ff2e2b515a82da9c5ebcbb14459dfb748a991b Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Thu, 23 Jul 2015 21:43:27 +0100 Subject: [PATCH] SPIGOT-1050: Add a missing case in the disable usercache saving option --- .../0027-Allow-Disabling-of-Command-Logging.patch | 4 +--- ...18-Configurable-save-on-stop-only-for-UserCache.patch | 9 +++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CraftBukkit-Patches/0027-Allow-Disabling-of-Command-Logging.patch b/CraftBukkit-Patches/0027-Allow-Disabling-of-Command-Logging.patch index 662403ac66..3b1e99d085 100644 --- a/CraftBukkit-Patches/0027-Allow-Disabling-of-Command-Logging.patch +++ b/CraftBukkit-Patches/0027-Allow-Disabling-of-Command-Logging.patch @@ -31,6 +31,4 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + logCommands = getBoolean( "commands.log", true ); + } } --- -1.9.0.msysgit.0 - +-- \ No newline at end of file diff --git a/CraftBukkit-Patches/0118-Configurable-save-on-stop-only-for-UserCache.patch b/CraftBukkit-Patches/0118-Configurable-save-on-stop-only-for-UserCache.patch index d63f5d474f..627a1a40bb 100644 --- a/CraftBukkit-Patches/0118-Configurable-save-on-stop-only-for-UserCache.patch +++ b/CraftBukkit-Patches/0118-Configurable-save-on-stop-only-for-UserCache.patch @@ -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 { } }