2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/chunk/ChunkStatus.java
|
|
|
|
+++ b/net/minecraft/world/level/chunk/ChunkStatus.java
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -39,7 +39,7 @@
|
2020-06-30 02:29:41 +02:00
|
|
|
});
|
2021-06-11 07:00:00 +02:00
|
|
|
public static final ChunkStatus STRUCTURE_STARTS = a("structure_starts", ChunkStatus.EMPTY, 0, ChunkStatus.PRE_FEATURES, ChunkStatus.Type.PROTOCHUNK, (chunkstatus, executor, worldserver, chunkgenerator, definedstructuremanager, lightenginethreaded, function, list, ichunkaccess) -> {
|
2020-06-30 02:29:41 +02:00
|
|
|
if (!ichunkaccess.getChunkStatus().b(chunkstatus)) {
|
|
|
|
- if (worldserver.getMinecraftServer().getSaveData().getGeneratorSettings().shouldGenerateMapFeatures()) {
|
2021-06-11 07:00:00 +02:00
|
|
|
+ if (worldserver.serverLevelData.getGeneratorSettings().shouldGenerateMapFeatures()) { // CraftBukkit
|
|
|
|
chunkgenerator.createStructures(worldserver.t(), worldserver.getStructureManager(), ichunkaccess, definedstructuremanager, worldserver.getSeed());
|
2020-06-30 02:29:41 +02:00
|
|
|
}
|
|
|
|
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -112,7 +112,7 @@
|
2020-06-30 02:29:41 +02:00
|
|
|
return (CompletableFuture) function.apply(ichunkaccess);
|
|
|
|
});
|
2021-06-11 07:00:00 +02:00
|
|
|
private static final List<ChunkStatus> STATUS_BY_RANGE = ImmutableList.of(ChunkStatus.FULL, ChunkStatus.FEATURES, ChunkStatus.LIQUID_CARVERS, ChunkStatus.STRUCTURE_STARTS, ChunkStatus.STRUCTURE_STARTS, ChunkStatus.STRUCTURE_STARTS, ChunkStatus.STRUCTURE_STARTS, ChunkStatus.STRUCTURE_STARTS, ChunkStatus.STRUCTURE_STARTS, ChunkStatus.STRUCTURE_STARTS, ChunkStatus.STRUCTURE_STARTS);
|
|
|
|
- private static final IntList RANGE_BY_STATUS = (IntList) SystemUtils.a((Object) (new IntArrayList(a().size())), (intarraylist) -> {
|
|
|
|
+ private static final IntList RANGE_BY_STATUS = (IntList) SystemUtils.a((new IntArrayList(a().size())), (java.util.function.Consumer<IntArrayList>) (intarraylist) -> { // CraftBukkit - decompile error
|
2020-06-30 02:29:41 +02:00
|
|
|
int i = 0;
|
|
|
|
|
|
|
|
for (int j = a().size() - 1; j >= 0; --j) {
|