Fix potion transformer to look up the right name depending on context.
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
parent
0bdc2d04b4
commit
4c05c63a04
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ function initializeCoreMod() {
|
|||
},
|
||||
'transformer': function(classNode) {
|
||||
var asmapi=Java.type('net.minecraftforge.coremod.api.ASMAPI')
|
||||
asmapi.redirectFieldToMethod(classNode, 'potion', 'getPotionRaw')
|
||||
var fn = asmapi.mapField('field_188420_b') // potion field - remap to mcp if necessary
|
||||
asmapi.redirectFieldToMethod(classNode, fn, 'getPotionRaw')
|
||||
return classNode;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue