aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt')
-rw-r--r--src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt4
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 = ""
}