Resplendent Prism adding enchantment levels to armor when adding cosmetic circles via Mahoujin Projector
stepsword opened this issue ยท 1 comments
Hi, I'm the Mahou dev, recently a player reported that they were able to get infinite protection levels on their armor by doing the following:
To replicate:
- Get Mahou Tsukai and Astral Sorcery
- Get a resplendent prism which adds levels to protection, and wear it.
- Put down a mahoujin projector from mahou
- Right click with the armor on the projector, and get free levels.
The projector adds an enchantment to the armor when right clicking, and having that enchant lets the cosmetic circle display on the armor. This seems to be triggering the Resplendent Prism to add free levels of stuff to the item.
Here is my code for adding the enchantment, if it's helpful:
public static void addEnchantment(ItemStack s, Enchantment e, int value) {
Map<Enchantment, Integer> enchants = EnchantmentHelper.getEnchantments(s);
enchants.put(e,value);
EnchantmentHelper.setEnchantments(enchants,s);
}
I guess this may be a slightly abnormal way of adding enchantments to items, but would it be possible to get a config or tag or something so people can blacklist specific problematic enchants from triggering this interaction?