From 2150ee615deff1e45f44b4e9a5c2a24890978e6c Mon Sep 17 00:00:00 2001 From: WolfyScript Date: Sat, 24 Aug 2024 13:11:19 +0200 Subject: [PATCH] Don't show thread count in sync mode --- .../customcrafting/handlers/LocalStorageLoader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spigot/src/main/java/me/wolfyscript/customcrafting/handlers/LocalStorageLoader.java b/spigot/src/main/java/me/wolfyscript/customcrafting/handlers/LocalStorageLoader.java index 27711958..4612b046 100644 --- a/spigot/src/main/java/me/wolfyscript/customcrafting/handlers/LocalStorageLoader.java +++ b/spigot/src/main/java/me/wolfyscript/customcrafting/handlers/LocalStorageLoader.java @@ -152,9 +152,10 @@ public void load() { */ api.getConsole().info("- - - - [Local Storage] - - - -"); int processors = Math.min(Runtime.getRuntime().availableProcessors(), dataSettings.maxProcessors()); - customCrafting.getLogger().info(PREFIX + "Using " + processors + " threads"); if (dataSettings.sync()) { customCrafting.getLogger().info(PREFIX + "Loading data synchronously"); + } else { + customCrafting.getLogger().info(PREFIX + "Using " + processors + " threads"); } executor = Executors.newWorkStealingPool(processors); api.getConsole().info(PREFIX + "Looking through data folder...");