mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 20:52:34 +00:00
Fix potion transformer to look up the right name depending on context.
Signed-off-by: cpw <[email protected]>
This commit is contained in:
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user