From 2c5b003676dfeb0dbad09580e7d7bf85d9e06234 Mon Sep 17 00:00:00 2001 From: Joe O'Hara Date: Mon, 15 Apr 2013 23:43:41 -0400 Subject: [PATCH] Return false if it can't mine. Derp. --- alicefixes/src/com/skcraft/alicefixes/TransformMiningLaser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alicefixes/src/com/skcraft/alicefixes/TransformMiningLaser.java b/alicefixes/src/com/skcraft/alicefixes/TransformMiningLaser.java index 408ab79..05fdd29 100644 --- a/alicefixes/src/com/skcraft/alicefixes/TransformMiningLaser.java +++ b/alicefixes/src/com/skcraft/alicefixes/TransformMiningLaser.java @@ -63,7 +63,7 @@ private byte[] handleLaserTransform(byte[] bytes) { "com/skcraft/alicefixes/TransformMiningLaser", "canMine", "(L" + ObfNames.ENTITY + ";L" + ObfNames.ENTITY_LIVING + ";)Z")); - toInject.add(new JumpInsnNode(IFEQ, l1)); //if statement + toInject.add(new JumpInsnNode(IFNE, l1)); //if statement toInject.add(l2); toInject.add(new InsnNode(ICONST_0)); //false toInject.add(new InsnNode(IRETURN)); //return