Skip to content

Commit 18d3c4c

Browse files
committed
align rightClickSpeed setting with actual delay
1 parent 4144344 commit 18d3c4c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/baritone/utils/BlockPlaceHelper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
import net.minecraft.world.phys.HitResult;
2626

2727
public class BlockPlaceHelper {
28+
// base ticks between places caused by tick logic
29+
private static final int BASE_PLACE_DELAY = 1;
2830

2931
private final IPlayerContext ctx;
3032
private int rightClickTimer;
@@ -42,7 +44,7 @@ public void tick(boolean rightClickRequested) {
4244
if (!rightClickRequested || ctx.player().isHandsBusy() || mouseOver == null || mouseOver.getType() != HitResult.Type.BLOCK) {
4345
return;
4446
}
45-
rightClickTimer = Baritone.settings().rightClickSpeed.value;
47+
rightClickTimer = Baritone.settings().rightClickSpeed.value - BASE_PLACE_DELAY;
4648
for (InteractionHand hand : InteractionHand.values()) {
4749
if (ctx.playerController().processRightClickBlock(ctx.player(), ctx.world(), hand, (BlockHitResult) mouseOver) == InteractionResult.SUCCESS) {
4850
ctx.player().swing(hand);

0 commit comments

Comments
 (0)