diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2023-01-14 14:51:55 -0500 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2023-01-14 14:56:31 -0500 |
commit | ee8f9de5a156f356e53eb70476f05cd2bf07ae89 (patch) | |
tree | 12a5ebded183994cff7f2926fa54a8a785bb145f /src/main/kotlin/cc/woverflow/chatting/gui | |
parent | e52b994b8a7c32badab7017dc0040d6bfb1cbedb (diff) | |
download | Chatting-ee8f9de5a156f356e53eb70476f05cd2bf07ae89.tar.gz Chatting-ee8f9de5a156f356e53eb70476f05cd2bf07ae89.tar.bz2 Chatting-ee8f9de5a156f356e53eb70476f05cd2bf07ae89.zip |
split GuiNewChatMixin into different mixins
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/gui')
-rw-r--r-- | src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt b/src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt index 2194bbb..54e9041 100644 --- a/src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt +++ b/src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt @@ -2,7 +2,7 @@ package cc.woverflow.chatting.gui.components import cc.polyfrost.oneconfig.libs.universal.UResolution import cc.woverflow.chatting.Chatting -import cc.woverflow.chatting.hook.GuiNewChatHook +import cc.woverflow.chatting.chat.ChatSearchingManager import net.minecraft.client.Minecraft import net.minecraft.client.gui.Gui import net.minecraft.client.gui.GuiTextField @@ -23,7 +23,7 @@ class SearchButton : chatBox = !chatBox inputField.setEnabled(chatBox) inputField.isFocused = chatBox - (Minecraft.getMinecraft().ingameGUI.chatGUI as GuiNewChatHook).prevText = "" + ChatSearchingManager.lastSearch = "" inputField.text = "" } |