From 9f0674087329afc76a71ce55a1262b86a403543a Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Sat, 20 Jun 2026 21:08:51 +0800 Subject: [PATCH] Improve spawn category map logging --- .../java/org/mvplugins/multiverse/core/MultiverseCore.java | 6 +++--- .../multiverse/core/world/entity/SpawnCategoryMapper.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/mvplugins/multiverse/core/MultiverseCore.java b/src/main/java/org/mvplugins/multiverse/core/MultiverseCore.java index 651964821..cae726cbd 100644 --- a/src/main/java/org/mvplugins/multiverse/core/MultiverseCore.java +++ b/src/main/java/org/mvplugins/multiverse/core/MultiverseCore.java @@ -87,9 +87,6 @@ public void onEnable() { super.onEnable(); initializeDependencyInjection(new MultiverseCorePluginBinder(this)); - // Build it here so our logger can work, and failure messages will be logged - SpawnCategoryMapper.buildSpawnCategoryMap(); - // Load our configs first as we need them for everything else. var config = configProvider.get(); var loadSuccess = config.load().andThenTry(config::save).isSuccess(); @@ -101,6 +98,9 @@ public void onEnable() { } Logging.setShowingConfig(shouldShowConfig()); + // Build it here so our logger can work, and failure messages will be logged + SpawnCategoryMapper.buildSpawnCategoryMap(); + // Initialize the worlds worldManagerProvider.get().initAllWorlds().andThenTry(() -> { loadEconomist(); // Setup economy here so vault is loaded diff --git a/src/main/java/org/mvplugins/multiverse/core/world/entity/SpawnCategoryMapper.java b/src/main/java/org/mvplugins/multiverse/core/world/entity/SpawnCategoryMapper.java index 0fbaeae89..8a3ca65bb 100644 --- a/src/main/java/org/mvplugins/multiverse/core/world/entity/SpawnCategoryMapper.java +++ b/src/main/java/org/mvplugins/multiverse/core/world/entity/SpawnCategoryMapper.java @@ -78,7 +78,7 @@ public static void buildSpawnCategoryMap() { .add(entityType)) .onFailure(throwable -> Logging.warning("Failed to map entity type " + entityTypeField.getName() + " to its spawn category. " + throwable.getLocalizedMessage()))) - .onFailure(throwable -> Logging.warning("Failed to map entity type " + .onFailure(throwable -> Logging.fine("Failed to map entity type " + entityTypeField.getName() + " to its spawn category. " + throwable.getLocalizedMessage()))); if (entityTypeToSpawnCategoryMap.isEmpty()) {