Compare commits

...

2 commits

Author SHA1 Message Date
4e1ed9f1ea
remove ) 2026-08-12 23:13:57 +02:00
5ad3f1a7a2
Duplicate registered enchantment name warning as debug log 2026-08-12 19:01:54 +02:00
2 changed files with 2 additions and 3 deletions

View file

@ -124,6 +124,6 @@ jobs:
webhook-url: ${{ secrets.RELEASE_WEBHOOK_URL }}
content: |
<@&1525259349423947867>
# New bugfix for CustomAnvil v1 ! <:CustomAnvil:1262550667986342001> [Modrinth](https://modrinth.com/plugin/customanvil) and [GitHub](${{ github.event.release.html_url }}) links)
# New bugfix for CustomAnvil v1 ! <:CustomAnvil:1262550667986342001> [Modrinth](https://modrinth.com/plugin/customanvil) and [GitHub](${{ github.event.release.html_url }}) links
${{ github.event.release.body }}

View file

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