From 068cc5db57af16b25dd5115498ddf0e6f1fc2c80 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Tue, 16 May 2023 00:12:00 +1000 Subject: Various Fixes (#107) --- .../java/at/hannibal2/skyhanni/test/command/CopyTabListCommand.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/test') diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/CopyTabListCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/command/CopyTabListCommand.kt index 177b92b7d..fc41c4009 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/command/CopyTabListCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/command/CopyTabListCommand.kt @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.OSUtils import at.hannibal2.skyhanni.utils.StringUtils.removeColor import at.hannibal2.skyhanni.utils.TabListData +import net.minecraft.client.Minecraft object CopyTabListCommand { fun command(args: Array) { @@ -14,7 +15,9 @@ object CopyTabListCommand { val tabListLine = if (noColor) line.removeColor() else line if (tabListLine != "") resultList.add("'$tabListLine'") } - val string = resultList.joinToString("\n") + val tabHeader = Minecraft.getMinecraft().ingameGUI.tabList.header.formattedText + val tabFooter = Minecraft.getMinecraft().ingameGUI.tabList.footer.formattedText + val string = "Header:\n\n" + tabHeader.toString() + "\n\nBody:\n\n" + resultList.joinToString("\n") + "\nFooter:\n\n" + tabFooter.toString() OSUtils.copyToClipboard(string) LorenzUtils.chat("§e[SkyHanni] tablist copied into the clipboard!") } -- cgit