Replace BIPUSH 1 with ICONST_1

Signed-off-by: Graham <gpe@openrs2.org>
Graham 3 years ago
parent cf983794fb
commit 08080489b6
  1. 2
      patcher/src/main/kotlin/org/openrs2/patcher/transform/InvalidKeyTransformer.kt

@ -64,7 +64,7 @@ public class InvalidKeyTransformer : Transformer() {
list.add(InsnNode(Opcodes.SWAP)) list.add(InsnNode(Opcodes.SWAP))
list.add(MethodInsnNode(Opcodes.INVOKEVIRTUAL, "java/io/PrintStream", "println", "(Ljava/lang/String;)V")) list.add(MethodInsnNode(Opcodes.INVOKEVIRTUAL, "java/io/PrintStream", "println", "(Ljava/lang/String;)V"))
list.add(IntInsnNode(Opcodes.BIPUSH, 1)) list.add(InsnNode(Opcodes.ICONST_1))
list.add(IntInsnNode(Opcodes.NEWARRAY, Opcodes.T_BYTE)) list.add(IntInsnNode(Opcodes.NEWARRAY, Opcodes.T_BYTE))
list.add(InsnNode(Opcodes.DUP)) list.add(InsnNode(Opcodes.DUP))

Loading…
Cancel
Save