mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
Duplicate registered enchantment name warning as debug log
This commit is contained in:
parent
685e046063
commit
5ad3f1a7a2
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue