From dae58987b89bc01fa2828b5f4840a594f416f592 Mon Sep 17 00:00:00 2001 From: Cephetir Date: Fri, 6 May 2022 12:57:50 +0300 Subject: Clear button --- src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/kotlin/cc/woverflow/chatting/utils') diff --git a/src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt b/src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt index bf11c3b..dc6a1e6 100644 --- a/src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt +++ b/src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt @@ -226,7 +226,7 @@ val messages: Map = mutableMapOf() var lastMessage: ChatLine? = null fun showTimestamp() { if (!ChattingConfig.showTimestamp) return - val chatLine = getChatLineOverMouse(UMouse.Raw.x.roundToInt(), UMouse.Raw.y.roundToInt()) + val chatLine = getChatLineOverMouse(UMouse.getTrueX().roundToInt(), UMouse.getTrueY().roundToInt()) if (chatLine != null) { val long = messages[chatLine] if (long != null) chatLine.chatComponent.appendText(" §7[${sdf.format(Date(long))}]§r") -- cgit