Skip to content

Commit

Permalink
Return false if it can't mine. Derp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe12o committed Apr 16, 2013
1 parent 956534b commit 2c5b003
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c5b003

Please sign in to comment.