@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/level/chunk/storage/RegionFileCache.java
|
||||
+++ b/net/minecraft/world/level/chunk/storage/RegionFileCache.java
|
||||
@@ -29,7 +29,7 @@
|
||||
@@ -30,7 +30,7 @@
|
||||
this.sync = flag;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
long i = ChunkCoordIntPair.asLong(chunkcoordintpair.getRegionX(), chunkcoordintpair.getRegionZ());
|
||||
RegionFile regionfile = (RegionFile) this.regionCache.getAndMoveToFirst(i);
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
@@ -45,6 +45,7 @@
|
||||
Path path = this.folder;
|
||||
int j = chunkcoordintpair.getRegionX();
|
||||
Path path1 = path.resolve("r." + j + "." + chunkcoordintpair.getRegionZ() + ".mca");
|
||||
@@ -17,7 +17,7 @@
|
||||
RegionFile regionfile1 = new RegionFile(path1, this.folder, this.sync);
|
||||
|
||||
this.regionCache.putAndMoveToFirst(i, regionfile1);
|
||||
@@ -53,7 +54,12 @@
|
||||
@@ -54,7 +55,12 @@
|
||||
|
||||
@Nullable
|
||||
public NBTTagCompound read(ChunkCoordIntPair chunkcoordintpair) throws IOException {
|
||||
@@ -31,7 +31,7 @@
|
||||
DataInputStream datainputstream = regionfile.getChunkDataInputStream(chunkcoordintpair);
|
||||
|
||||
NBTTagCompound nbttagcompound;
|
||||
@@ -93,7 +99,12 @@
|
||||
@@ -94,7 +100,12 @@
|
||||
}
|
||||
|
||||
public void scanChunk(ChunkCoordIntPair chunkcoordintpair, StreamTagVisitor streamtagvisitor) throws IOException {
|
||||
@@ -45,7 +45,7 @@
|
||||
DataInputStream datainputstream = regionfile.getChunkDataInputStream(chunkcoordintpair);
|
||||
|
||||
try {
|
||||
@@ -119,7 +130,7 @@
|
||||
@@ -120,7 +131,7 @@
|
||||
}
|
||||
|
||||
protected void write(ChunkCoordIntPair chunkcoordintpair, @Nullable NBTTagCompound nbttagcompound) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user