From 67a47c003c76cebc7d57e789c114b62313a543fe Mon Sep 17 00:00:00 2001 From: nea Date: Thu, 3 Aug 2023 21:31:57 +0200 Subject: Add structured chat component support to chat filter --- .../java/at/hannibal2/skyhanni/config/commands/Commands.kt | 1 + .../java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt index 4c73c6113..e83a14c5c 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt @@ -50,6 +50,7 @@ object Commands { ConfigGuiManager.openConfigGui(it.joinToString(" ")) } } else { + val arr = mutableListOf() ConfigGuiManager.openConfigGui() } } diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt index f9566cdf1..8f346ddea 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt @@ -11,6 +11,7 @@ import net.minecraft.client.gui.GuiUtilRenderComponents import net.minecraft.client.gui.ScaledResolution import net.minecraft.client.renderer.GlStateManager import net.minecraft.util.IChatComponent +import org.lwjgl.input.Keyboard import org.lwjgl.input.Mouse class ChatFilterGui(private val history: List) : GuiScreen() { @@ -63,8 +64,13 @@ class ChatFilterGui(private val history: List