[Bug]: Advanced Enchanting infuser bypassing check if something is enchantable
SevenChords opened this issue ยท 1 comments
Mod Loader (Required)
Forge
Minecraft Version (Required)
1.19.2
Mod Version (Required)
4.2.2
Notes (Required)
When enchanting a weapon that should not be enchantable, that has gotten an enchant on it through some other (intended) way (like keeping enchants of previous tier when upgrading) the advanced enchanting infuser skips the check if it's enchantable and allows both modification of existing enchants and adding new enchants.
example:
mystical agriculture tools and weapons keep their enchants from previous tiers when upgrading.
the supremium tier tools have a config if they should be enchantable or not.
if that config is set to false, but you upgrade an imperium sword to supremium that already has e.g. sharpness 1 (or any other enchant at any level) the advanced enchanting infuser acts as if it were enchantable and allows free modification of any and all enchantments.
when the supremium sword was upgraded without enchants on it the advanced enchanting infuser correctly disables enchanting of it.
a possible solution would be to either only allow modification of already existing enchants without the ability to add new ones or to simply disable enchanting of unenchantable items even if they already have an enchant on them.
latest.log (Optional)
No response