On 1.15.2 - 31.2.0 mod runs fine in dev environment, but fails at the first of the following lines during common_setup event phase. If the first line is omitted, it fails on the second, indicating a general problem with symbol lookup in the runtime only environment:
this.updateAutoJump = ObfuscationReflectionHelper.findMethod(ClientPlayerEntity.class, "updateAutoJump", float.class, float.class);
this.mouseButtonSimulate = ObfuscationReflectionHelper.findMethod(MouseHelper.class, "mouseButtonCallback", long.class, int.class, int.class, int.class);
The relevant part of build.gradle:
minecraft {
[...]
mappings channel: 'snapshot', version: '20201216-1.15.1'
//mappings channel: 'snapshot', version: '20200514-1.15.1' // also doesn't work
[...]
}
Has anyone else encountered this problem?
Have researched for a day now, and just cannot see why the SRG names are not being consistently handled by ObfuscationReflectionHelper
Any help greatly appreciated