From 5822703b7d770ec67a4c4ca00192006b8f0cb9b9 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Tue, 17 Jan 2023 09:44:34 -0500 Subject: smooth messages / scrolling animation speed fix sending messages (again lol) --- src/main/kotlin/cc/woverflow/chatting/Chatting.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/kotlin/cc/woverflow/chatting/Chatting.kt') diff --git a/src/main/kotlin/cc/woverflow/chatting/Chatting.kt b/src/main/kotlin/cc/woverflow/chatting/Chatting.kt index 7560537..85204d8 100644 --- a/src/main/kotlin/cc/woverflow/chatting/Chatting.kt +++ b/src/main/kotlin/cc/woverflow/chatting/Chatting.kt @@ -154,6 +154,13 @@ object Chatting { } } + @SubscribeEvent + fun onRenderTickEnd(event: RenderTickEvent) { + if (event.phase == TickEvent.Phase.END) { + deltaTicks = 0f + } + } + @SubscribeEvent fun onTickEvent(event: TickEvent.ClientTickEvent) { if (event.phase == TickEvent.Phase.START && Minecraft.getMinecraft().theWorld != null && Minecraft.getMinecraft().thePlayer != null && (Minecraft.getMinecraft().currentScreen == null || Minecraft.getMinecraft().currentScreen is GuiChat)) { -- cgit