Created
August 18, 2015 08:20
-
-
Save Darkhax/0b8d259645c40ec233ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static InsnList getPreOverlayInstructions() { | |
LabelNode start = new LabelNode(); | |
LabelNode exit = new LabelNode(); | |
LabelNode end = new LabelNode(); | |
InsnList insns = new InsnList(); | |
insns.add(start); | |
insns.add(new MethodInsnNode(INVOKESTATIC, "net/darkhax/wawla/WailaAddon", "preOverlayRendering", "()Z", false)); | |
insns.add(new JumpInsnNode(IFNE, end)); | |
insns.add(new JumpInsnNode(GOTO, exit)); | |
insns.add(new InsnNode(RETURN)); | |
/** | |
Label l0 = new Label(); | |
mv.visitLabel(l0); | |
mv.visitLineNumber(98, l0); | |
mv.visitMethodInsn(INVOKESTATIC, "net/darkhax/wawla/addons/WailaAddon", "preOverlayRendering", "()Z", false); | |
Label l1 = new Label(); | |
mv.visitJumpInsn(IFNE, l1); | |
Label l2 = new Label(); | |
mv.visitLabel(l2); | |
mv.visitLineNumber(99, l2); | |
mv.visitInsn(RETURN); | |
mv.visitLabel(l1); | |
*/ | |
return insns; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment