2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/level/chunk/ChunkStatus.java
|
|
|
|
+++ b/net/minecraft/world/level/chunk/ChunkStatus.java
|
2022-12-08 03:00:00 +11:00
|
|
|
@@ -48,7 +48,7 @@
|
2020-06-30 10:29:41 +10:00
|
|
|
});
|
2022-06-08 02:00:00 +10:00
|
|
|
public static final ChunkStatus STRUCTURE_STARTS = register("structure_starts", ChunkStatus.EMPTY, 0, ChunkStatus.PRE_FEATURES, ChunkStatus.Type.PROTOCHUNK, (chunkstatus, executor, worldserver, chunkgenerator, structuretemplatemanager, lightenginethreaded, function, list, ichunkaccess, flag) -> {
|
2021-11-22 09:00:00 +11:00
|
|
|
if (!ichunkaccess.getStatus().isOrAfter(chunkstatus)) {
|
2022-12-08 03:00:00 +11:00
|
|
|
- if (worldserver.getServer().getWorldData().worldGenOptions().generateStructures()) {
|
|
|
|
+ if (worldserver.serverLevelData.worldGenOptions().generateStructures()) { // CraftBukkit
|
|
|
|
chunkgenerator.createStructures(worldserver.registryAccess(), worldserver.getChunkSource().getGeneratorState(), worldserver.structureManager(), ichunkaccess, structuretemplatemanager);
|
2020-06-30 10:29:41 +10:00
|
|
|
}
|
|
|
|
|