Skip to content

Commit

Permalink
Fix wrong method name in searching
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Apr 3, 2024
1 parent 7c54bb5 commit 988cbda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public byte[] transform(byte[] bytes) {
}
});

classNode.methods.stream().filter(methodNode -> methodNode.name.equals("func_78263_a")).findFirst().ifPresent(m4 ->
classNode.methods.stream().filter(methodNode -> methodNode.name.equals("getCharWidthFloat")).findFirst().ifPresent(m4 ->
m4.instructions.forEach(n -> {
if (n.getOpcode() == Opcodes.INVOKEVIRTUAL && n instanceof MethodInsnNode methodInsnNode) {
if (methodInsnNode.owner.equals("java/lang/String") && methodInsnNode.name.equals("indexOf")) {
Expand Down

0 comments on commit 988cbda

Please sign in to comment.