[1.17] NaturalSpawner Mixin fails to apply in release builds
andrewathalye opened this issue ยท 4 comments
The createCubicState injector fails to apply in release builds (non-dev) due to asLong(II)J not being defined in CubePos in the intermediary naming scheme. This appears to be a result of Vec3i being CubePos' parent, and while an obfuscation mapping is defined in Yarn for Vec3i, no such mapping exists for CubePos itself, fooling the Injector.
This can be reversed manually by replacing asLong(II)J with method_8331(II)J, but it may be more desirable to manually specify method_8331(II)J as the obfuscated name or take some other approach to the ASM transformer which avoids relying on asLong(II)J.
There are no published jars yet because the mod is not ready to be used yet so testing outside of dev environment is not a priority right now.
The real fix is to handle the rename in MainTransformer
, so by the time mixin is applied, the name is already stable.