Improve LerpedFloat#settled()

This commit is contained in:
PepperCode1 2023-05-13 07:57:06 -07:00
parent 49166f8dab
commit 3d3ef68900
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ public class LerpedFloat {
} }
public boolean settled() { public boolean settled() {
return Mth.equal((double) previousValue, value); return Mth.equal((double) previousValue, value) && (chaseFunction == null || Mth.equal((double) value, chaseTarget));
} }
public float getChaseTarget() { public float getChaseTarget() {