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
1 changed files with 2 additions and 1 deletions

View File

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