You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -21,7 +21,7 @@ public class RegionFileStorage implements AutoCloseable, ca.spottedleaf.moonrise
@@ -160,16 +160,24 @@ index 0615fd82b71efb9a397de01615050e6d906c2844..1c83375beea629ebd78d7027fbba81f9
160
160
private final RegionStorageInfo info;
161
161
private final Path folder;
162
162
private final boolean sync;
163
-
@@ -31,7 +31,7 @@ public class RegionFileStorage implements AutoCloseable, ca.spottedleaf.moonrise
163
+
@@ -31,9 +31,15 @@ public class RegionFileStorage implements AutoCloseable, ca.spottedleaf.moonrise
164
164
private static final int MAX_NON_EXISTING_CACHE = 1024 * 64;
165
165
private final it.unimi.dsi.fastutil.longs.LongLinkedOpenHashSet nonExistingRegionFiles = new it.unimi.dsi.fastutil.longs.LongLinkedOpenHashSet(MAX_NON_EXISTING_CACHE+1);
166
166
private static String getRegionFileName(final int chunkX, final int chunkZ) {
@@ -120,7 +120,7 @@ public class RegionFileStorage implements AutoCloseable, ca.spottedleaf.moonrise
237
+
@@ -120,7 +130,7 @@ public class RegionFileStorage implements AutoCloseable, ca.spottedleaf.moonrise
210
238
synchronized (this) {
211
239
final long key = ChunkPos.asLong(chunkcoordintpair.x >> REGION_SHIFT, chunkcoordintpair.z >> REGION_SHIFT);
212
240
@@ -215,7 +243,7 @@ index 0615fd82b71efb9a397de01615050e6d906c2844..1c83375beea629ebd78d7027fbba81f9
215
243
if (ret != null) {
216
244
return ret;
217
245
}
218
-
@@ -135,7 +135,7 @@ public class RegionFileStorage implements AutoCloseable, ca.spottedleaf.moonrise
246
+
@@ -135,7 +145,7 @@ public class RegionFileStorage implements AutoCloseable, ca.spottedleaf.moonrise
219
247
220
248
FileUtil.createDirectoriesSafe(this.folder);
221
249
@@ -224,7 +252,7 @@ index 0615fd82b71efb9a397de01615050e6d906c2844..1c83375beea629ebd78d7027fbba81f9
224
252
225
253
this.regionCache.putAndMoveToFirst(key, ret);
226
254
227
-
@@ -149,7 +149,7 @@ public class RegionFileStorage implements AutoCloseable, ca.spottedleaf.moonrise
255
+
@@ -149,7 +159,7 @@ public class RegionFileStorage implements AutoCloseable, ca.spottedleaf.moonrise
228
256
org.apache.logging.log4j.LogManager.getLogger().fatal(msg + " (" + file.toString().replaceAll(".+[\\\\/]", "") + " - " + x + "," + z + ") Go clean it up to remove this message. /minecraft:tp " + (x<<4)+" 128 "+(z<<4) + " - DO NOT REPORT THIS TO PAPER - You may ask for help on Discord, but do not file an issue. These error messages can not be removed.");
229
257
}
230
258
@@ -233,7 +261,7 @@ index 0615fd82b71efb9a397de01615050e6d906c2844..1c83375beea629ebd78d7027fbba81f9
@@ -295,7 +323,7 @@ index 0615fd82b71efb9a397de01615050e6d906c2844..1c83375beea629ebd78d7027fbba81f9
295
323
try {
296
324
NbtIo.write(nbt, (DataOutput) dataoutputstream);
297
325
regionfile.setOversized(pos.x, pos.z, false); // Paper - We don't do this anymore, mojang stores differently, but clear old meta flag if it exists to get rid of our own meta file once last oversized is gone
298
-
@@ -324,7 +349,7 @@ public class RegionFileStorage implements AutoCloseable, ca.spottedleaf.moonrise
326
+
@@ -324,7 +359,7 @@ public class RegionFileStorage implements AutoCloseable, ca.spottedleaf.moonrise
299
327
// Paper start - rewrite chunk system
300
328
synchronized (this) {
301
329
final ExceptionCollector<IOException> exceptionCollector = new ExceptionCollector<>();
@@ -304,7 +332,7 @@ index 0615fd82b71efb9a397de01615050e6d906c2844..1c83375beea629ebd78d7027fbba81f9
304
332
try {
305
333
regionFile.close();
306
334
} catch (final IOException ex) {
307
-
@@ -341,7 +366,7 @@ public class RegionFileStorage implements AutoCloseable, ca.spottedleaf.moonrise
335
+
@@ -341,7 +376,7 @@ public class RegionFileStorage implements AutoCloseable, ca.spottedleaf.moonrise
308
336
// Paper start - rewrite chunk system
309
337
synchronized (this) {
310
338
final ExceptionCollector<IOException> exceptionCollector = new ExceptionCollector<>();
0 commit comments