diff --git a/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/config/CoreConfig.java b/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/config/CoreConfig.java index 0233303d..f1415ebf 100644 --- a/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/config/CoreConfig.java +++ b/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/config/CoreConfig.java @@ -27,10 +27,8 @@ public int getRenderThreadCount() { } public int resolveRenderThreadCount() { - if (renderThreadCount > 0) - return renderThreadCount; - - return Runtime.getRuntime().availableProcessors() + renderThreadCount; + if (renderThreadCount > 0) return renderThreadCount; + return Math.max(Runtime.getRuntime().availableProcessors() + renderThreadCount, 1); } public boolean isMetrics() {