Fix reflection helper: it needs to unmap the classname to find the field maps.
This commit is contained in:
parent
46b909e818
commit
796f70b545
|
@ -44,7 +44,7 @@ public class ObfuscationReflectionHelper
|
||||||
|
|
||||||
public static String[] remapFieldNames(String className, String... fieldNames)
|
public static String[] remapFieldNames(String className, String... fieldNames)
|
||||||
{
|
{
|
||||||
String internalClassName = className.replace('.', '/');
|
String internalClassName = FMLDeobfuscatingRemapper.INSTANCE.unmap(className.replace('.', '/'));
|
||||||
String[] mappedNames = new String[fieldNames.length];
|
String[] mappedNames = new String[fieldNames.length];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (String fName : fieldNames)
|
for (String fName : fieldNames)
|
||||||
|
|
Loading…
Reference in New Issue