diff options
| author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2023-01-13 11:15:15 -0500 |
|---|---|---|
| committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2023-01-13 11:15:15 -0500 |
| commit | f80dad6f297a60f23ca3066742c2df78e3b6fc83 (patch) | |
| tree | 3c3d286bc6d9faa5305d88c784893717d7c8bdfb /src/main/kotlin/cc/woverflow/chatting/utils | |
| parent | 348abd9142f75d9fb723237fdd3cfa3174bbbc21 (diff) | |
| download | Chatting-f80dad6f297a60f23ca3066742c2df78e3b6fc83.tar.gz Chatting-f80dad6f297a60f23ca3066742c2df78e3b6fc83.tar.bz2 Chatting-f80dad6f297a60f23ca3066742c2df78e3b6fc83.zip | |
fix the empty void when screenshotting
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/utils')
| -rw-r--r-- | src/main/kotlin/cc/woverflow/chatting/utils/ModCompatHooks.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/cc/woverflow/chatting/utils/ModCompatHooks.kt b/src/main/kotlin/cc/woverflow/chatting/utils/ModCompatHooks.kt index 0d1d512..b18bdaa 100644 --- a/src/main/kotlin/cc/woverflow/chatting/utils/ModCompatHooks.kt +++ b/src/main/kotlin/cc/woverflow/chatting/utils/ModCompatHooks.kt @@ -41,9 +41,9 @@ object ModCompatHooks { get() = Minecraft.getMinecraft().fontRendererObj @JvmStatic - fun redirectDrawString(text: String, x: Float, y: Float, color: Int, chatLine: ChatLine): Int { + fun redirectDrawString(text: String, x: Float, y: Float, color: Int, chatLine: ChatLine, screenshot: Boolean): Int { var actualX = x - if (showChatHeads) { + if (showChatHeads && !screenshot) { val hook = chatLine as ChatLineHook if (hook.hasDetected() || offsetNonPlayerMessages) { actualX += 10f |
