mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-25 17:33:52 -07:00
@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/RegionFileCache.java
|
||||
+++ b/net/minecraft/server/RegionFileCache.java
|
||||
@@ -20,7 +20,7 @@
|
||||
@@ -21,7 +21,7 @@
|
||||
this.c = flag;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
long i = ChunkCoordIntPair.pair(chunkcoordintpair.getRegionX(), chunkcoordintpair.getRegionZ());
|
||||
RegionFile regionfile = (RegionFile) this.cache.getAndMoveToFirst(i);
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
@@ -37,6 +37,7 @@
|
||||
}
|
||||
|
||||
File file = new File(this.b, "r." + chunkcoordintpair.getRegionX() + "." + chunkcoordintpair.getRegionZ() + ".mca");
|
||||
@@ -17,7 +17,7 @@
|
||||
RegionFile regionfile1 = new RegionFile(file, this.b, this.c);
|
||||
|
||||
this.cache.putAndMoveToFirst(i, regionfile1);
|
||||
@@ -45,7 +46,12 @@
|
||||
@@ -46,7 +47,12 @@
|
||||
|
||||
@Nullable
|
||||
public NBTTagCompound read(ChunkCoordIntPair chunkcoordintpair) throws IOException {
|
||||
@@ -31,7 +31,7 @@
|
||||
DataInputStream datainputstream = regionfile.a(chunkcoordintpair);
|
||||
Throwable throwable = null;
|
||||
|
||||
@@ -80,7 +86,7 @@
|
||||
@@ -81,7 +87,7 @@
|
||||
}
|
||||
|
||||
protected void write(ChunkCoordIntPair chunkcoordintpair, NBTTagCompound nbttagcompound) throws IOException {
|
||||
|
Reference in New Issue
Block a user