mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 23:22:10 -07:00
Update to Minecraft 1.16.1
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
--- a/net/minecraft/server/RegionFileCache.java
|
||||
+++ b/net/minecraft/server/RegionFileCache.java
|
||||
@@ -18,7 +18,7 @@
|
||||
this.b = file;
|
||||
@@ -20,7 +20,7 @@
|
||||
this.c = flag;
|
||||
}
|
||||
|
||||
- private RegionFile getFile(ChunkCoordIntPair chunkcoordintpair) throws IOException {
|
||||
@@ -9,15 +9,15 @@
|
||||
long i = ChunkCoordIntPair.pair(chunkcoordintpair.getRegionX(), chunkcoordintpair.getRegionZ());
|
||||
RegionFile regionfile = (RegionFile) this.cache.getAndMoveToFirst(i);
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
@@ -36,6 +36,7 @@
|
||||
}
|
||||
|
||||
File file = new File(this.b, "r." + chunkcoordintpair.getRegionX() + "." + chunkcoordintpair.getRegionZ() + ".mca");
|
||||
+ if (existingOnly && !file.exists()) return null; // CraftBukkit
|
||||
RegionFile regionfile1 = new RegionFile(file, this.b);
|
||||
RegionFile regionfile1 = new RegionFile(file, this.b, this.c);
|
||||
|
||||
this.cache.putAndMoveToFirst(i, regionfile1);
|
||||
@@ -43,7 +44,12 @@
|
||||
@@ -45,7 +46,12 @@
|
||||
|
||||
@Nullable
|
||||
public NBTTagCompound read(ChunkCoordIntPair chunkcoordintpair) throws IOException {
|
||||
@@ -31,7 +31,7 @@
|
||||
DataInputStream datainputstream = regionfile.a(chunkcoordintpair);
|
||||
Throwable throwable = null;
|
||||
|
||||
@@ -78,7 +84,7 @@
|
||||
@@ -80,7 +86,7 @@
|
||||
}
|
||||
|
||||
protected void write(ChunkCoordIntPair chunkcoordintpair, NBTTagCompound nbttagcompound) throws IOException {
|
||||
|
Reference in New Issue
Block a user