@@ -1,10 +1,10 @@
|
||||
--- a/net/minecraft/server/IChunkLoader.java
|
||||
+++ b/net/minecraft/server/IChunkLoader.java
|
||||
@@ -18,15 +18,54 @@
|
||||
this.a = new IOWorker(new RegionFileCache(file), "chunk");
|
||||
@@ -18,10 +18,49 @@
|
||||
this.a = new IOWorker(file, flag, "chunk");
|
||||
}
|
||||
|
||||
- public NBTTagCompound getChunkData(DimensionManager dimensionmanager, Supplier<WorldPersistentData> supplier, NBTTagCompound nbttagcompound) {
|
||||
- public NBTTagCompound getChunkData(ResourceKey<World> resourcekey, Supplier<WorldPersistentData> supplier, NBTTagCompound nbttagcompound) {
|
||||
+ // CraftBukkit start
|
||||
+ private boolean check(ChunkProviderServer cps, int x, int z) throws IOException {
|
||||
+ ChunkCoordIntPair pos = new ChunkCoordIntPair(x, z);
|
||||
@@ -32,7 +32,7 @@
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
+ public NBTTagCompound getChunkData(DimensionManager dimensionmanager, Supplier<WorldPersistentData> supplier, NBTTagCompound nbttagcompound, ChunkCoordIntPair pos, @Nullable GeneratorAccess generatoraccess) throws IOException {
|
||||
+ public NBTTagCompound getChunkData(ResourceKey<World> resourcekey, Supplier<WorldPersistentData> supplier, NBTTagCompound nbttagcompound, ChunkCoordIntPair pos, @Nullable GeneratorAccess generatoraccess) throws IOException {
|
||||
int i = a(nbttagcompound);
|
||||
boolean flag = true;
|
||||
|
||||
@@ -51,9 +51,3 @@
|
||||
if (i < 1493) {
|
||||
nbttagcompound = GameProfileSerializer.a(this.b, DataFixTypes.CHUNK, nbttagcompound, i, 1493);
|
||||
if (nbttagcompound.getCompound("Level").getBoolean("hasLegacyStructureData")) {
|
||||
if (this.c == null) {
|
||||
- this.c = PersistentStructureLegacy.a(dimensionmanager, (WorldPersistentData) supplier.get());
|
||||
+ this.c = PersistentStructureLegacy.a(dimensionmanager.getType(), (WorldPersistentData) supplier.get()); // CraftBukkit - getType
|
||||
}
|
||||
|
||||
nbttagcompound = this.c.a(nbttagcompound);
|
||||
|
||||
Reference in New Issue
Block a user