Update FMLDeobfuscatingRemapper.java

Fixes a "Type mismath:cannot convert from element type Object to FieldNode" error at line 176.
This commit is contained in:
Glought 2013-04-21 05:09:19 -07:00
parent 3446f1ce26
commit 074d7c2ec7

View file

@ -173,7 +173,7 @@ public class FMLDeobfuscatingRemapper extends Remapper {
ClassNode classNode = new ClassNode();
cr.accept(classNode, ClassReader.SKIP_CODE | ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);
Map<String,String> resMap = Maps.newHashMap();
for (FieldNode fieldNode : classNode.fields) {
for (FieldNode fieldNode : (List<FieldNode>) classNode.fields) {
resMap.put(fieldNode.name, fieldNode.desc);
}
fieldDescriptions.put(owner, resMap);