From 54f3e9e12d599817c2b2b9ecb095678a0d76a36b Mon Sep 17 00:00:00 2001 From: tom lee Date: Sun, 23 Jan 2022 21:19:53 +0800 Subject: [PATCH] Update core --- .../common/wrappers/worldGeneration/WorldGenerationStep.java | 3 ++- core | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/seibel/lod/common/wrappers/worldGeneration/WorldGenerationStep.java b/common/src/main/java/com/seibel/lod/common/wrappers/worldGeneration/WorldGenerationStep.java index 12a6c19e4..73cabd78d 100644 --- a/common/src/main/java/com/seibel/lod/common/wrappers/worldGeneration/WorldGenerationStep.java +++ b/common/src/main/java/com/seibel/lod/common/wrappers/worldGeneration/WorldGenerationStep.java @@ -25,6 +25,7 @@ import com.seibel.lod.core.builders.lodBuilding.LodBuilder; import com.seibel.lod.core.builders.lodBuilding.LodBuilderConfig; import com.seibel.lod.core.enums.config.DistanceGenerationMode; import com.seibel.lod.core.objects.lod.LodDimension; +import com.seibel.lod.core.util.LodThreadFactory; import com.seibel.lod.core.wrapperInterfaces.modAccessor.IStarlightAccessor; import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap; @@ -469,7 +470,7 @@ public final class WorldGenerationStep { final StepLight stepLight = new StepLight(); public final ExecutorService executors = Executors - .newCachedThreadPool(new ThreadFactoryBuilder().setNameFormat("Gen-Worker-Thread-%d").build()); + .newCachedThreadPool(new LodThreadFactory("Gen-Worker-Thread", Thread.MIN_PRIORITY)); public boolean tryAddPoint(int px, int pz, int range, Steps target) { int boxSize = range * 2 + 1; diff --git a/core b/core index e9e2af280..f93983994 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit e9e2af2807b230ef840b93e78bf4df33daf7fa82 +Subproject commit f93983994190c9e32ee57e59b653568d238b7644