From dfb1e462dfda561280ff862619e103bc05273026 Mon Sep 17 00:00:00 2001 From: Wyvest Date: Sat, 11 Mar 2023 23:33:50 +0700 Subject: fix delta time with hudcaching --- .../java/cc/woverflow/chatting/mixin/GuiNewChatMixin_Scrolling.java | 2 +- .../cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java') 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; -- cgit