dont jump while breaking

This commit is contained in:
Leijurv 2019-03-12 18:58:35 -07:00
parent 52d8d271f1
commit fa8f2632f5
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -235,6 +235,7 @@ public class MovementPillar extends Movement {
if (reachable.isPresent()) {
state.setTarget(new MovementState.MovementTarget(reachable.get(), true));
}
state.setInput(Input.JUMP, false); // breaking is like 5x slower when you're jumping
state.setInput(Input.CLICK_LEFT, true);
blockIsThere = false;
} else if (ctx.player().isSneaking() && (Objects.equals(src.down(), ctx.objectMouseOver().getBlockPos()) || Objects.equals(src, ctx.objectMouseOver().getBlockPos())) && ctx.player().posY > dest.getY() + 0.1) {