Skip to content

Commit

Permalink
Fix obfuscated name of EntityPlayer.jump
Browse files Browse the repository at this point in the history
  • Loading branch information
squeek502 committed Jul 15, 2017
1 parent 16f7f5e commit 854c900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/squeek/quakemovement/ASMPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public byte[] transform(String name, String transformedName, byte[] bytes)
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");

Expand Down

0 comments on commit 854c900

Please sign in to comment.