diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-05-16 00:12:00 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 16:12:00 +0200 |
commit | 068cc5db57af16b25dd5115498ddf0e6f1fc2c80 (patch) | |
tree | 494870e13da911e2679f1c6597c597ab18ba3a66 /src/main/java/at/hannibal2/skyhanni/test | |
parent | 36752963503cc5657ddfb3e9318c78526d769bc4 (diff) | |
download | skyhanni-068cc5db57af16b25dd5115498ddf0e6f1fc2c80.tar.gz skyhanni-068cc5db57af16b25dd5115498ddf0e6f1fc2c80.tar.bz2 skyhanni-068cc5db57af16b25dd5115498ddf0e6f1fc2c80.zip |
Various Fixes (#107)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/command/CopyTabListCommand.kt | 5 |
1 files changed, 4 insertions, 1 deletions
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<String>) { @@ -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!") } |