summaryrefslogtreecommitdiffstats
path: root/nms-patches/RegionFileCache.patch
diff options
context:
space:
mode:
authorGeoff Crossland <gcrossland+bukkit@gmail.com>2017-01-31 23:52:21 +0000
committermd_5 <git@md-5.net>2017-04-27 21:25:33 +1000
commit6194f6cc4985a4a6840bb2cc39375caf9835ae68 (patch)
tree8b7fbbd61df2878e006b0766393f1329d4d00608 /nms-patches/RegionFileCache.patch
parent55a1f9ff12e69ef036ae999dc8cf63f2622cc873 (diff)
downloadcraftbukkit-6194f6cc4985a4a6840bb2cc39375caf9835ae68.tar
craftbukkit-6194f6cc4985a4a6840bb2cc39375caf9835ae68.tar.gz
craftbukkit-6194f6cc4985a4a6840bb2cc39375caf9835ae68.tar.lz
craftbukkit-6194f6cc4985a4a6840bb2cc39375caf9835ae68.tar.xz
craftbukkit-6194f6cc4985a4a6840bb2cc39375caf9835ae68.zip
Drop RegionFile.chunkExists() in favour of Mojang's own version
Diffstat (limited to 'nms-patches/RegionFileCache.patch')
-rw-r--r--nms-patches/RegionFileCache.patch7
1 files changed, 5 insertions, 2 deletions
diff --git a/nms-patches/RegionFileCache.patch b/nms-patches/RegionFileCache.patch
index e97b881c..fe90d577 100644
--- a/nms-patches/RegionFileCache.patch
+++ b/nms-patches/RegionFileCache.patch
@@ -1,6 +1,6 @@
--- a/net/minecraft/server/RegionFileCache.java
+++ b/net/minecraft/server/RegionFileCache.java
-@@ -74,17 +74,27 @@
+@@ -74,19 +74,29 @@
RegionFileCache.a.clear();
}
@@ -30,5 +30,8 @@
}
+ // CraftBukkit end
- public static boolean f(File file, int i, int j) {
+- public static boolean f(File file, int i, int j) {
++ public static synchronized boolean f(File file, int i, int j) { // PAIL chunkExists; CraftBukkit
RegionFile regionfile = b(file, i, j);
+
+ return regionfile != null ? regionfile.c(i & 31, j & 31) : false;