Fix obfuscated name of EntityPlayer.jump

This commit is contained in:
Ryan Liptak 2017-07-14 20:49:24 -07:00
parent 16f7f5e27b
commit 854c900c39

View File

@ -46,7 +46,7 @@ public class ASMPlugin implements IFMLLoadingPlugin, IClassTransformer
loadParameters.add(new VarInsnNode(Opcodes.ALOAD, 0));
injectSimpleHook(method, findFirstInstruction(method), CLASS_QUAKE_CLIENT_PLAYER, "beforeOnLivingUpdate", toMethodDescriptor("V", CLASS_ENTITY_PLAYER), loadParameters);
method = findMethodNodeOfClass(classNode, isObfuscated ? "cm" : "jump", "()V");
method = findMethodNodeOfClass(classNode, isObfuscated ? "cu" : "jump", "()V");
if (method == null)
throw new RuntimeException("could not find EntityPlayer.jump");