mirror of
https://github.com/squeek502/Squake.git
synced 2025-08-04 02:07:37 -04:00
Fix obfuscated name of EntityPlayer.jump
This commit is contained in:
parent
16f7f5e27b
commit
854c900c39
@ -46,7 +46,7 @@ public class ASMPlugin implements IFMLLoadingPlugin, IClassTransformer
|
|||||||
loadParameters.add(new VarInsnNode(Opcodes.ALOAD, 0));
|
loadParameters.add(new VarInsnNode(Opcodes.ALOAD, 0));
|
||||||
injectSimpleHook(method, findFirstInstruction(method), CLASS_QUAKE_CLIENT_PLAYER, "beforeOnLivingUpdate", toMethodDescriptor("V", CLASS_ENTITY_PLAYER), loadParameters);
|
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)
|
if (method == null)
|
||||||
throw new RuntimeException("could not find EntityPlayer.jump");
|
throw new RuntimeException("could not find EntityPlayer.jump");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user