From 3daa0eb6ce7fc8adb1787423fedf8323c238035c Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sun, 5 Nov 2023 15:53:57 -0600 Subject: [PATCH] Fix ThreadPools not setting workerThreadSemaphoreCount at bootup --- .../seibel/distanthorizons/core/util/threading/ThreadPools.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/util/threading/ThreadPools.java b/core/src/main/java/com/seibel/distanthorizons/core/util/threading/ThreadPools.java index 535ade292..a4f851b7c 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/util/threading/ThreadPools.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/util/threading/ThreadPools.java @@ -75,7 +75,7 @@ public class ThreadPools /** how many total worker threads can be used */ - private static int workerThreadSemaphoreCount = 0; + private static int workerThreadSemaphoreCount = Config.Client.Advanced.MultiThreading.numberOfLodBuilderThreads.get(); public static int getWorkerThreadCount() { return workerThreadSemaphoreCount; } private static Semaphore workerThreadSemaphore = null;