diff options
author | Cephetir <silyichev@gmail.com> | 2022-05-06 12:57:50 +0300 |
---|---|---|
committer | Cephetir <silyichev@gmail.com> | 2022-05-06 12:57:50 +0300 |
commit | dae58987b89bc01fa2828b5f4840a594f416f592 (patch) | |
tree | 5769e04c97490d694b1ba855aaac0cb4289a457c /src/main/kotlin/cc/woverflow/chatting/utils | |
parent | b5002d403246d91b8276791c1d16847abbbadab9 (diff) | |
download | Chatting-dae58987b89bc01fa2828b5f4840a594f416f592.tar.gz Chatting-dae58987b89bc01fa2828b5f4840a594f416f592.tar.bz2 Chatting-dae58987b89bc01fa2828b5f4840a594f416f592.zip |
Clear button
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/utils')
-rw-r--r-- | src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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<ChatLine, Long> = 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") |