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

@ -265,7 +265,7 @@ public class PonderTagScreen extends NavigatableSimiScreen {
// UIRenderHelper.streak(0, itemArea.getX() - 10, itemArea.getY() - 20, 20, 180, 0x101010);
drawCenteredString(ms, font, relatedTitle, windowWidth / 2, itemArea.getY() - 20, Theme.i(Theme.Key.TEXT));
ms.translate(0,0, -200);
ms.translate(0, 0, -200);
UIRenderHelper.streak(ms, 0, 0, 0, itemArea.getHeight() + 10, itemArea.getWidth() / 2 + 75);
UIRenderHelper.streak(ms, 180, 0, 0, itemArea.getHeight() + 10, itemArea.getWidth() / 2 + 75);

View file

@ -95,7 +95,7 @@ public class LerpedFloat {
}
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() {