aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java b/src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java
index e2c0b05..5d18580 100644
--- a/src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java
+++ b/src/main/java/cc/polyfrost/oneconfig/internal/utils/Notification.java
@@ -69,10 +69,10 @@ public final class Notification {
this.action = action;
}
- public float draw(final long vg, float y, float scale) {
+ public float draw(final long vg, float y, float scale, float deltaTime) {
RenderManager.scale(vg, scale, scale);
inputHandler.scale(scale, scale);
- float x = (UResolution.getWindowWidth() / scale - animation.get(hovered ? 0 : GuiUtils.getDeltaTime()));
+ float x = (UResolution.getWindowWidth() / scale - animation.get(hovered ? 0 : deltaTime));
float textX = icon == null ? x + 16 : x + 64;
float textMaxLength = icon == null ? 268 : 220;
float messageHeight = RenderManager.getWrappedStringHeight(vg, message, textMaxLength, 12f, 1.75f, Fonts.REGULAR);