aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/woverflow/chatting/mixin
diff options
context:
space:
mode:
authorWyvest <wyvestbusiness@gmail.com>2023-03-11 23:33:50 +0700
committerWyvest <wyvestbusiness@gmail.com>2023-03-11 23:33:50 +0700
commitdfb1e462dfda561280ff862619e103bc05273026 (patch)
tree9ff5665ff97ead8e1e5880ca7ca0aa13b8f58da5 /src/main/java/cc/woverflow/chatting/mixin
parentd8a71de94f7fcbd237aafad3a6ef65ddc8712276 (diff)
downloadChatting-dfb1e462dfda561280ff862619e103bc05273026.tar.gz
Chatting-dfb1e462dfda561280ff862619e103bc05273026.tar.bz2
Chatting-dfb1e462dfda561280ff862619e103bc05273026.zip
fix delta time with hudcaching
Diffstat (limited to 'src/main/java/cc/woverflow/chatting/mixin')
-rw-r--r--src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_Scrolling.java2
-rw-r--r--src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_Scrolling.java b/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_Scrolling.java
index c87ec6f..448ba6e 100644
--- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_Scrolling.java
+++ b/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_Scrolling.java
@@ -40,7 +40,7 @@ public abstract class GuiNewChatMixin_Scrolling extends Gui {
}
chatting$scrollingAnimation = null;
} else {
- scrollPos = (int) chatting$scrollingAnimation.get(Chatting.INSTANCE.getDeltaTicks());
+ scrollPos = (int) chatting$scrollingAnimation.get(Chatting.INSTANCE.getDeltaTime());
}
}
}
diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java b/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java
index d2604de..e71b550 100644
--- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java
+++ b/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java
@@ -47,7 +47,7 @@ public abstract class GuiNewChatMixin_SmoothMessages {
if (chatting$easeOutQuart.isFinished()) {
chatting$easeOutQuart = null;
} else {
- chatting$animationPercent = chatting$easeOutQuart.get(Chatting.INSTANCE.getDeltaTicks());
+ chatting$animationPercent = chatting$easeOutQuart.get(Chatting.INSTANCE.getDeltaTime());
}
} else {
chatting$animationPercent = 1;