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:
Christian 2013-03-09 17:32:11 -05:00
parent c33cd0d9ea
commit a713300e0a

View file

@ -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;
} }