mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-15 01:03:42 +01:00
Improve LerpedFloat#settled()
This commit is contained in:
parent
49166f8dab
commit
3d3ef68900
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue