Enchanting Infuser [Forge & Fabric]

Enchanting Infuser [Forge & Fabric]

3M Downloads

[Bug]: enchantment categories get bypassed in the basic infuser

szymenek0 opened this issue ยท 2 comments

commented

Mod Loader (Required)

Fabric

Minecraft Version (Required)

1.19.2

Mod Version (Required)

4.2.2

Notes (Required)

I am running a server with enchanting infuser and some extra enchantments. The problem is, i found a bug in the amethyst table, that allows ANY enchant on ANY item. So you can add the enchantment that adds hearts onto an axe and it will be completely broken and likely destroy my server. This is not the case for the netherite one, this one works fine.
How to replicate the issue: Install enchanting infuser along with some mods that add enchantments, in my case spellbound enchantments, fabric enchanments and wizards. Open the normal infuser and put any item in it. You will be able to add enchantments from categories that do not match this item onto it, like protection ones on an axe. Use enchantment descriptions mod to see the categories. As i said, this is not the case with the advanced infuser or the anvill or normal enchanting table, so the problem must be on the infusers side. This bug is very bad considering i have health inducing ones, so you can effectively make yourself unkillabe. Just please, help, because if someone on the server finds this out, it is going to completely ruin the server. i cannot disable these encahntments nor the infusers since some people use them already.

latest.log (Optional)

No response

commented

I looked into it and the issue stems from the way the spellbound mod implements it's custom enchantment categories. Their implementation really isn't ideal to be honest, that's why the normal infuser behaves like that. I'm not going to support their system, it's a much better approach for them to adjust their implementation. What they are doing right now can be done much simpler with libraries such as this or my own library.

You as a user can either completely disable enchantments such as Hearty (why should be possible in the spellbound config), or you switch the normal infuser to use the anvil logic when checking which enchantments are allowed on an item as the advanced infuser does which will evade this issue.

commented

Thanks, I will try all of these solutions. The anvill mode is activated in the config of enchanting infuser, right?