From ea11188d07aff0975b9249c5fe845c11f04fb3ad Mon Sep 17 00:00:00 2001 From: ybw0014 Date: Sun, 21 Jan 2024 14:06:20 -0500 Subject: [PATCH] fix: fix log --- .../api/config/TranslationConfiguration.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/guizhanss/slimefuntranslation/api/config/TranslationConfiguration.java b/src/main/java/net/guizhanss/slimefuntranslation/api/config/TranslationConfiguration.java index d42c74432..7c837cc64 100644 --- a/src/main/java/net/guizhanss/slimefuntranslation/api/config/TranslationConfiguration.java +++ b/src/main/java/net/guizhanss/slimefuntranslation/api/config/TranslationConfiguration.java @@ -68,9 +68,10 @@ public static Optional fromFileConfiguration(String la Map itemTranslations = new HashMap<>(); Map 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); @@ -127,7 +128,9 @@ public static Optional 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) {