From bd47cab2ff4168ca2e03287d4ca04b81f3c5708d Mon Sep 17 00:00:00 2001 From: Sotr Date: Wed, 25 Jul 2018 00:38:07 +0800 Subject: [PATCH] Paper 1.13 Backport: Optimize Region File Cache --- .../src/main/java/net/minecraft/server/RegionFileCache.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/src/main/java/net/minecraft/server/RegionFileCache.java b/sources/src/main/java/net/minecraft/server/RegionFileCache.java index bab36590d..2aea7f2ec 100644 --- a/sources/src/main/java/net/minecraft/server/RegionFileCache.java +++ b/sources/src/main/java/net/minecraft/server/RegionFileCache.java @@ -94,7 +94,7 @@ public class RegionFileCache { } // CraftBukkit start - call sites hoisted for synchronization - public static synchronized NBTTagCompound d(File file, int i, int j) throws IOException { // OBFHELPER: read + public static /*synchronized*/ NBTTagCompound d(File file, int i, int j) throws IOException { // Akarin - remove synchronization // OBFHELPER: read RegionFile regionfile = a(file, i, j); DataInputStream datainputstream = regionfile.a(i & 31, j & 31); @@ -106,7 +106,7 @@ public class RegionFileCache { return NBTCompressedStreamTools.a(datainputstream); } - public static synchronized void e(File file, int i, int j, NBTTagCompound nbttagcompound) throws IOException { // OBFHELPER: write + public static /*synchronized*/ void e(File file, int i, int j, NBTTagCompound nbttagcompound) throws IOException { // Akarin - remove synchronization // OBFHELPER: write RegionFile regionfile = a(file, i, j); DataOutputStream dataoutputstream = regionfile.b(i & 31, j & 31); @@ -115,7 +115,7 @@ public class RegionFileCache { } // CraftBukkit end - public static synchronized boolean chunkExists(File file, int i, int j) { + public static /*synchronized*/ boolean chunkExists(File file, int i, int j) { // Akarin - remove synchronization RegionFile regionfile = b(file, i, j); return regionfile != null ? regionfile.c(i & 31, j & 31) : false;