Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Loading