aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-08-16 21:54:31 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-08-16 21:54:31 +0700
commit794dcf0a1312b58cf1247c0907414fd1eb88e06d (patch)
tree7f3d608a901a0ac8164ca6a29a69410de7701dc8 /src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt
parent89938d618307955ac1218b0f286bb1b1ce252e35 (diff)
downloadChatting-794dcf0a1312b58cf1247c0907414fd1eb88e06d.tar.gz
Chatting-794dcf0a1312b58cf1247c0907414fd1eb88e06d.tar.bz2
Chatting-794dcf0a1312b58cf1247c0907414fd1eb88e06d.zip
new: completely remove Essential
fix: fix copy chat button not rendering when patcher transparent chat is enabled
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt')
-rw-r--r--src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt b/src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt
index 9fc5e8d..4f65427 100644
--- a/src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt
+++ b/src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt
@@ -1,9 +1,9 @@
package cc.woverflow.chatting.gui.components
+import cc.polyfrost.oneconfig.libs.universal.UResolution
+import cc.polyfrost.oneconfig.libs.universal.UScreen
import cc.woverflow.chatting.Chatting
import cc.woverflow.chatting.mixin.GuiNewChatAccessor
-import gg.essential.api.utils.GuiUtil
-import gg.essential.universal.UResolution
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.Gui
import net.minecraft.client.gui.GuiChat
@@ -16,7 +16,7 @@ class ScreenshotButton :
override fun onMousePress() {
val chat = Minecraft.getMinecraft().ingameGUI.chatGUI
- if (GuiUtil.getOpenedScreen() is GuiChat) {
+ if (UScreen.currentScreen is GuiChat) {
Chatting.screenshotChat((chat as GuiNewChatAccessor).scrollPos)
}
}