Revert "Use the reobfuscation maps in the reflection helper for field lookups: should help some reflection cases with the deobf."

This reverts commit 485db6be2e.
This commit is contained in:
Christian committed 2013-03-09 17:32:11 -05:00
1 parent 485db6be2e
commit 591e65fa1a
1 file changed
+1 -4
@@ -14,8 +14,6 @@ package cpw.mods.fml.relauncher;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import cpw.mods.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper;
/**
* Some reflection helper code.
*
@@ -75,10 +73,9 @@ public class ReflectionHelper
Exception failed = null;
for (String fieldName : fieldNames)
{
String remappedField = FMLDeobfuscatingRemapper.INSTANCE.mapFieldName(clazz.getName().replace('.', '/'), fieldName, null);
try
{
Field f = clazz.getDeclaredField(remappedField);
Field f = clazz.getDeclaredField(fieldName);
f.setAccessible(true);
return f;
}