Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and fix PressingBehaviour.java #7168

Open
wants to merge 13 commits into
base: mc1.20.1/dev
Choose a base branch
from
Next Next commit
Fix off by 1 error in PressingBehaviour.java
  • Loading branch information
Shroopy authored Nov 24, 2024
commit e62d0400f3a04da5e466fb0df451e966a6f6ed76
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public int getRunningTickSpeed() {
float speed = specifics.getKineticSpeed();
if (speed == 0)
return 0;
return (int) Mth.lerp(Mth.clamp(Math.abs(speed) / 512f, 0, 1), 1, 60);
return (int) Mth.lerp(Mth.clamp(Math.abs(speed) / 512f, 0, 1), 0, 60);
}

protected void spawnParticles() {
Expand Down