diff --git a/Spigot-Server-Patches/Optimize-UserCache-Thread-Safe.patch b/Spigot-Server-Patches/Optimize-UserCache-Thread-Safe.patch index e395d5c511..23a9f7fd41 100644 --- a/Spigot-Server-Patches/Optimize-UserCache-Thread-Safe.patch +++ b/Spigot-Server-Patches/Optimize-UserCache-Thread-Safe.patch @@ -75,7 +75,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + public void c(boolean asyncSave) { + // Paper end String s = this.b.toJson(this.a(org.spigotmc.SpigotConfig.userCacheCap)); -+ Runnable save = () -> { // Paper - ensure only 1 file is writing at same time by syncing to the FD ++ Runnable save = () -> { + BufferedWriter bufferedwriter = null; @@ -85,7 +85,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 IOUtils.closeQuietly(bufferedwriter); } + // Paper start -+ }}; ++ }; + if (asyncSave) { + MCUtil.scheduleAsyncTask(save); + } else {