Skip to content

Commit 0a44e31

Browse files
authored
Fix insnToString not accepting AbstractInsnNode (#53)
1 parent c3dac8c commit 0a44e31

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/net/minecraftforge/coremod/api

1 file changed

+2
-2
lines changed

src/main/java/net/minecraftforge/coremod/api/ASMAPI.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -556,15 +556,15 @@ public static String methodNodeToString(MethodNode node) {
556556
* @param insn The instruction to convert.
557557
* @return The string representation of the instruction.
558558
*/
559-
public static String insnToString(InsnNode insn) {
559+
public static String insnToString(AbstractInsnNode insn) {
560560
Textifier text = new Textifier();
561561
insn.accept(new TraceMethodVisitor(text));
562562
return toString(text);
563563
}
564564

565565
/**
566566
* Converts a {@link InsnList} to a string representation, displaying each instruction in the list similar to
567-
* {@link #insnToString(InsnNode)}.
567+
* {@link #insnToString(AbstractInsnNode)}.
568568
*
569569
* @param list The list to convert.
570570
* @return The string

0 commit comments

Comments
 (0)