summaryrefslogtreecommitdiffstats
path: root/nms-patches/RegionFileCache.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/RegionFileCache.patch')
-rw-r--r--nms-patches/RegionFileCache.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/RegionFileCache.patch b/nms-patches/RegionFileCache.patch
index aef8ddb9..9258d3e1 100644
--- a/nms-patches/RegionFileCache.patch
+++ b/nms-patches/RegionFileCache.patch
@@ -8,18 +8,18 @@
+ public static synchronized RegionFile b(File file, int i, int j) {
+ File file1 = new File(file, "region");
+ File file2 = new File(file1, "r." + (i >> 5) + "." + (j >> 5) + ".mca");
-+ RegionFile regionfile = (RegionFile) RegionFileCache.a.get(file2);
++ RegionFile regionfile = (RegionFile) RegionFileCache.cache.get(file2);
+
+ if (regionfile != null) {
+ return regionfile;
+ } else if (file1.exists() && file2.exists()) {
-+ if (RegionFileCache.a.size() >= 256) {
++ if (RegionFileCache.cache.size() >= 256) {
+ a();
+ }
+
+ RegionFile regionfile1 = new RegionFile(file2);
+
-+ RegionFileCache.a.put(file2, regionfile1);
++ RegionFileCache.cache.put(file2, regionfile1);
+ return regionfile1;
+ } else {
+ return null;
@@ -28,7 +28,7 @@
+ // CraftBukkit end
+
public static synchronized void a() {
- Iterator iterator = RegionFileCache.a.values().iterator();
+ Iterator iterator = RegionFileCache.cache.values().iterator();
@@ -55,16 +78,32 @@
}