Fix missed debugging code. Read the config from the config.
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
parent
de24783152
commit
1d7db95539
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
package net.minecraftforge.fml;
|
package net.minecraftforge.fml;
|
||||||
|
|
||||||
|
import net.minecraftforge.fml.loading.FMLConfig;
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
|
@ -85,7 +86,7 @@ public class ModWorkManager {
|
||||||
private static ForkJoinPool parallelThreadPool;
|
private static ForkJoinPool parallelThreadPool;
|
||||||
public static Executor parallelExecutor() {
|
public static Executor parallelExecutor() {
|
||||||
if (parallelThreadPool == null) {
|
if (parallelThreadPool == null) {
|
||||||
final int loadingThreadCount = 2;
|
final int loadingThreadCount = FMLConfig.loadingThreadCount();
|
||||||
LOGGER.debug(LOADING, "Using {} threads for parallel mod-loading", loadingThreadCount);
|
LOGGER.debug(LOADING, "Using {} threads for parallel mod-loading", loadingThreadCount);
|
||||||
parallelThreadPool = new ForkJoinPool(loadingThreadCount, ModWorkManager::newForkJoinWorkerThread, null, false);
|
parallelThreadPool = new ForkJoinPool(loadingThreadCount, ModWorkManager::newForkJoinWorkerThread, null, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue