Revert "Use the reobfuscation maps in the reflection helper for field lookups: should help some reflection cases with the deobf."
This reverts commit 485db6be2e6b54a9a523a2b06e0d886792b0826a.
This commit is contained in:
parent
c33cd0d9ea
commit
a713300e0a
1 changed files with 1 additions and 4 deletions
|
@ -14,8 +14,6 @@ package cpw.mods.fml.relauncher;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
import cpw.mods.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper;
|
|
||||||
/**
|
/**
|
||||||
* Some reflection helper code.
|
* Some reflection helper code.
|
||||||
*
|
*
|
||||||
|
@ -75,10 +73,9 @@ public class ReflectionHelper
|
||||||
Exception failed = null;
|
Exception failed = null;
|
||||||
for (String fieldName : fieldNames)
|
for (String fieldName : fieldNames)
|
||||||
{
|
{
|
||||||
String remappedField = FMLDeobfuscatingRemapper.INSTANCE.mapFieldName(clazz.getName().replace('.', '/'), fieldName, null);
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Field f = clazz.getDeclaredField(remappedField);
|
Field f = clazz.getDeclaredField(fieldName);
|
||||||
f.setAccessible(true);
|
f.setAccessible(true);
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue