Don't repeat we are loading translations twice

This commit is contained in:
libraryaddict 2021-05-29 11:16:10 +12:00
parent c1ede49a8e
commit 3fc8bf30bb

View File

@ -83,10 +83,6 @@ public enum TranslateType {
private void loadTranslations() { private void loadTranslations() {
translated.clear(); translated.clear();
if (LibsPremium.isPremium() && DisguiseConfig.isUseTranslations()) {
DisguiseUtilities.getLogger().info("Loading translations: " + name());
}
if (!getFile().exists()) { if (!getFile().exists()) {
DisguiseUtilities.getLogger().info("Translations for " + name() + " missing! Saving.."); DisguiseUtilities.getLogger().info("Translations for " + name() + " missing! Saving..");
return; return;
@ -124,7 +120,7 @@ public enum TranslateType {
DisguiseUtilities.getLogger().info("Loaded " + translated.size() + " translations for " + name() + " with " + diff + " changed"); DisguiseUtilities.getLogger().info("Loaded " + translated.size() + " translations for " + name() + " with " + diff + " changed");
} else if (diff > 0 && !DisguiseConfig.isUseTranslations()) { } else if (diff > 0 && !DisguiseConfig.isUseTranslations()) {
DisguiseUtilities.getLogger() DisguiseUtilities.getLogger()
.info("Translations are disabled in libsdisguises.yml, but you modified " + diff + " messages in the translations. Is this intended?"); .info("Translations are disabled in libsdisguises.yml, but you modified " + diff + " messages in the translations for " + name() +". Is this intended?");
} }
} }