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() {
translated.clear();
if (LibsPremium.isPremium() && DisguiseConfig.isUseTranslations()) {
DisguiseUtilities.getLogger().info("Loading translations: " + name());
}
if (!getFile().exists()) {
DisguiseUtilities.getLogger().info("Translations for " + name() + " missing! Saving..");
return;
@ -124,7 +120,7 @@ public enum TranslateType {
DisguiseUtilities.getLogger().info("Loaded " + translated.size() + " translations for " + name() + " with " + diff + " changed");
} else if (diff > 0 && !DisguiseConfig.isUseTranslations()) {
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?");
}
}