diff --git a/common/src/main/java/com/seibel/lod/common/wrappers/worldGeneration/BatchGenerationEnvironment.java b/common/src/main/java/com/seibel/lod/common/wrappers/worldGeneration/BatchGenerationEnvironment.java index 109699718..3df7a86d3 100644 --- a/common/src/main/java/com/seibel/lod/common/wrappers/worldGeneration/BatchGenerationEnvironment.java +++ b/common/src/main/java/com/seibel/lod/common/wrappers/worldGeneration/BatchGenerationEnvironment.java @@ -195,7 +195,8 @@ public final class BatchGenerationEnvironment extends AbstractBatchGenerationEnv DependencySetupDoneCheck.getIsCurrentThreadDistantGeneratorThread = BatchGenerationEnvironment::isCurrentThreadDistantGeneratorThread; } - public ExecutorService executors = Executors.newFixedThreadPool(Config.Client.Advanced.Threading.getWorldGenerationThreadPoolSize(), + public ExecutorService executors = Executors.newFixedThreadPool( + Math.max(Config.Client.Advanced.Threading.numberOfWorldGenerationThreads.get().intValue(), 1), threadFactory); public T joinSync(CompletableFuture f) {