Duplicate registered enchantment name warning as debug log

This commit is contained in:
alexcrea 2026-08-12 19:01:54 +02:00
parent 685e046063
commit 5ad3f1a7a2
Signed by: alexcrea
GPG key ID: E59DF23EE2A2266C

View file

@ -99,8 +99,7 @@ public class CAEnchantmentRegistry {
if ((!hasWarnedRegistering) && byNameMap.containsKey(enchantment.getName())) { if ((!hasWarnedRegistering) && byNameMap.containsKey(enchantment.getName())) {
hasWarnedRegistering = true; hasWarnedRegistering = true;
CustomAnvil.instance.getLogger().log(Level.WARNING, CustomAnvil.Companion.log("Duplicate registered enchantment name. Please check that configuration is using namespace.");
"Duplicate registered enchantment name. Please check that configuration is using namespace.");
} }
byKeyMap.put(enchantment.getKey(), enchantment); byKeyMap.put(enchantment.getKey(), enchantment);