diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2023-01-17 09:44:34 -0500 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2023-01-17 09:44:34 -0500 |
commit | 5822703b7d770ec67a4c4ca00192006b8f0cb9b9 (patch) | |
tree | 7ded70762db28ec2321ce25bd20d3313a26c52df /src/main/kotlin/cc/woverflow/chatting/Chatting.kt | |
parent | 6120b123648f2ccf7a5d5efea1a5c3600a725196 (diff) | |
download | Chatting-5822703b7d770ec67a4c4ca00192006b8f0cb9b9.tar.gz Chatting-5822703b7d770ec67a4c4ca00192006b8f0cb9b9.tar.bz2 Chatting-5822703b7d770ec67a4c4ca00192006b8f0cb9b9.zip |
smooth messages / scrolling animation speed
fix sending messages (again lol)
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/Chatting.kt')
-rw-r--r-- | src/main/kotlin/cc/woverflow/chatting/Chatting.kt | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ -155,6 +155,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)) { if (doTheThing) { |