Skip to content

Commit

Permalink
fix: fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Jan 21, 2024
1 parent f064c6b commit ea11188
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ public static Optional<TranslationConfiguration> fromFileConfiguration(String la
Map<String, ItemTranslation> itemTranslations = new HashMap<>();
Map<String, String> loreTranslations = new HashMap<>();

SlimefunTranslation.log(Level.INFO, "Loading translation configuration \"{0}\", language: {2}", name, lang);
SlimefunTranslation.log(Level.INFO, "Loading translation configuration \"{0}\", language: {1}", name, lang);

if (itemsSection != null) {
int count = 0;
for (var itemId : itemsSection.getKeys(false)) {
SlimefunTranslation.debug("Loading item translation {0}", itemId);

Expand Down Expand Up @@ -127,7 +128,9 @@ public static Optional<TranslationConfiguration> fromFileConfiguration(String la

var translation = new FixedItemTranslation(displayName, lore, overrides, replacements, checkName, partialOverride);
itemTranslations.put(itemId, translation);
count++;
}
SlimefunTranslation.log(Level.INFO, "Loaded {0} item translations.", count);
}

if (loreSection != null) {
Expand Down

0 comments on commit ea11188

Please sign in to comment.