Posted December 5, 20213 yr I'm using MCP fields ObfuscationReflectionHelper.getPrivateValue(AnyClass.class, foo, "bar") The generated jar (build/libs/example.jar) has no converted fields (errors: [net.minecraftforge.fml.util.ObfuscationReflectionHelper/REFLECTION]: Unable to locate field ...). For the jar build I tried ./gradlew build and intellij idea. What have I missed or could have done wrong? version: client: 1.18 forge: 38.0.14 Edited December 5, 20213 yr by XXXL
December 5, 20213 yr You need to use the SRG name of fields when using the ObfuscationReflectionHelper. That's the one that looks like f_12313_.
December 5, 20213 yr Author 4 minutes ago, Curle said: You need to use the SRG name of fields when using the ObfuscationReflectionHelper. That's the one that looks like f_12313_. Thanks. Solved
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.