fix brainlet block breaking issue

This commit is contained in:
Leijurv 2019-09-28 16:28:58 -07:00
parent 9f271b1f44
commit 8a396db80e
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -63,11 +63,12 @@ public final class BlockBreakHelper implements Helper {
ctx.player().swingArm(EnumHand.MAIN_HAND); ctx.player().swingArm(EnumHand.MAIN_HAND);
} }
ctx.playerController().setHittingBlock(false);
didBreakLastTick = true; didBreakLastTick = true;
} else if (didBreakLastTick) { } else if (didBreakLastTick) {
stopBreakingBlock(); stopBreakingBlock();
didBreakLastTick = false; didBreakLastTick = false;
} }
ctx.playerController().setHittingBlock(false);
} }
} }