Removed some jank code

This commit is contained in:
coolGi
2022-07-25 23:11:01 +09:30
parent 18f5c6aa95
commit 60d8d0be50
@@ -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> T joinSync(CompletableFuture<T> f) {