mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
Update to Minecraft 1.16.2
This commit is contained in:
@@ -1,30 +1,34 @@
|
||||
--- a/net/minecraft/server/ChunkGenerator.java
|
||||
+++ b/net/minecraft/server/ChunkGenerator.java
|
||||
@@ -214,6 +214,13 @@
|
||||
@@ -210,7 +210,16 @@
|
||||
while (iterator.hasNext()) {
|
||||
StructureFeature<?, ?> structurefeature = (StructureFeature) iterator.next();
|
||||
Supplier<StructureFeature<?, ?>> supplier = (Supplier) iterator.next();
|
||||
|
||||
- this.a((StructureFeature) supplier.get(), iregistrycustom, structuremanager, ichunkaccess, definedstructuremanager, i, chunkcoordintpair, biomebase);
|
||||
+ // CraftBukkit start
|
||||
+ if (structurefeature.b == StructureGenerator.STRONGHOLD) {
|
||||
+ StructureFeature<?, ?> structurefeature = (StructureFeature) supplier.get();
|
||||
+ if (structurefeature.c == StructureGenerator.STRONGHOLD) {
|
||||
+ synchronized (structurefeature) {
|
||||
+ this.a(structurefeature, structuremanager, ichunkaccess, definedstructuremanager, i, chunkcoordintpair, biomebase);
|
||||
+ this.a(structurefeature, iregistrycustom, structuremanager, ichunkaccess, definedstructuremanager, i, chunkcoordintpair, biomebase);
|
||||
+ }
|
||||
+ } else
|
||||
+ } else {
|
||||
+ this.a(structurefeature, iregistrycustom, structuremanager, ichunkaccess, definedstructuremanager, i, chunkcoordintpair, biomebase);
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
this.a(structurefeature, structuremanager, ichunkaccess, definedstructuremanager, i, chunkcoordintpair, biomebase);
|
||||
}
|
||||
|
||||
@@ -293,9 +300,11 @@
|
||||
}
|
||||
@@ -294,9 +303,11 @@
|
||||
}
|
||||
|
||||
static {
|
||||
- IRegistry.a(IRegistry.CHUNK_GENERATOR, "noise", (Object) ChunkGeneratorAbstract.d);
|
||||
- IRegistry.a(IRegistry.CHUNK_GENERATOR, "flat", (Object) ChunkProviderFlat.d);
|
||||
- IRegistry.a(IRegistry.CHUNK_GENERATOR, "debug", (Object) ChunkProviderDebug.e);
|
||||
- IRegistry.a(IRegistry.CHUNK_GENERATOR, "debug", (Object) ChunkProviderDebug.d);
|
||||
+ // CraftBukkit start - decompile errors
|
||||
+ IRegistry.a(IRegistry.CHUNK_GENERATOR, "noise", ChunkGeneratorAbstract.d);
|
||||
+ IRegistry.a(IRegistry.CHUNK_GENERATOR, "flat", ChunkProviderFlat.d);
|
||||
+ IRegistry.a(IRegistry.CHUNK_GENERATOR, "debug", ChunkProviderDebug.e);
|
||||
+ IRegistry.a(IRegistry.CHUNK_GENERATOR, "debug", ChunkProviderDebug.d);
|
||||
+ // CraftBukkit end
|
||||
a = IRegistry.CHUNK_GENERATOR.dispatchStable(ChunkGenerator::a, Function.identity());
|
||||
}
|
||||
|
Reference in New Issue
Block a user