优化日志

This commit is contained in:
Xujiayao 2026-01-18 22:03:22 +08:00
parent f2a3329895
commit f325e22f0a
2 changed files with 8 additions and 5 deletions

View file

@ -71,9 +71,9 @@ public class DMCC {
}
if (IS_MINECRAFT_ENV) {
LOGGER.info(I18nManager.getDmccTranslation("main.init.info_minecraft_env", VERSION));
LOGGER.info(I18nManager.getDmccTranslation("main.init.info_minecraft_env"));
} else {
LOGGER.info(I18nManager.getDmccTranslation("main.init.info_standalone_env", VERSION));
LOGGER.info(I18nManager.getDmccTranslation("main.init.info_standalone_env"));
}
// If configuration fails to load, exit the DMCC-Init thread gracefully
@ -90,9 +90,9 @@ public class DMCC {
if (configs) {
if (IS_MINECRAFT_ENV) {
LOGGER.warn(I18nManager.getDmccTranslation("main.init.reload_prompt"));
LOGGER.warn(I18nManager.getDmccTranslation("main.init.minecraft_reload_prompt"));
} else {
LOGGER.warn(I18nManager.getDmccTranslation("main.init.restart_prompt"));
LOGGER.warn(I18nManager.getDmccTranslation("main.init.standalone_reload_prompt"));
}
return false;
}

View file

@ -73,7 +73,9 @@ public class I18nManager {
// For client-only mode, we only need DMCC translations for logs and basic messages.
if (!"multi_server_client".equals(ModeManager.getMode())) {
// For server-enabled modes, load the full I18n suite.
return loadCustomMessages();
if (!loadCustomMessages()) {
return false;
}
// Load official Minecraft translations, from cache or by downloading
// if (!loadMinecraftTranslations()) {
@ -81,6 +83,7 @@ public class I18nManager {
// }
}
LOGGER.info(I18nManager.getDmccTranslation("utils.i18n.fully_loaded"));
return true;
}