Patch Mana Enchanter - #138
Conversation
Also switch to shorts, matching Minecraft
we hate reading old switches!
|
This a) doesn't seem to apply to actual use cases and b) suggests that the underlying storage or transfer is originally an actual byte, and you get corruption issues and/or secret dependencies on HodgePodge. Code issues are:
|
Transferring uberchants beyond level 127 isn't possible without this. I don't know what you consider to be an actual usecase, but I wanted to do it and it didn't work 🤷♂️.
The underlying storage is a short in vanilla 7.10. If it ever was a byte, this was changed in a version prior to 7.10. Working with uberchants beyond a byte doesn't seem to cause any issues in other mods allowing it (Blood Magic, Thaumic Bases).
Didn't intend to do that, my editor doesn't distinguish the two. Could I add a
At the time I made the draft, it didn't exist. I'll fix the dep and undraft this. |
|
Looks like the NHlib version has been tagged and bumped since I made this, so I'll undraft now. |
Depends on GTNewHorizons/GTNHLib#387
Switch to the GTNHLib enchantment method over the vanilla one. This fixes an issue where enchantments with level [128, 32767] get wrapped to be in [-128, 127] when enchanting with the Mana Enchanter.