From 56f13597822b45caea4167d7d75258078e06c1b3 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 29 May 2024 22:11:50 +0200 Subject: cant use multi lines without clipboard --- src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt index e5ed69064..38db097a2 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt @@ -18,10 +18,11 @@ object TestChatCommand { SkyHanniMod.launchCoroutine { val mutArgs = args.toMutableList() + val multiLines = mutArgs.remove("-lines") val isComplex = mutArgs.remove("-complex") - val isClipboard = mutArgs.remove("-clipboard") + // cant use multi lines without clipboard + val isClipboard = mutArgs.remove("-clipboard") || multiLines val isHidden = mutArgs.remove("-s") - val multiLines = mutArgs.remove("-lines") val text = if (isClipboard) { OSUtils.readFromClipboard() ?: return@launchCoroutine ChatUtils.userError("Clipboard does not contain a string!") -- cgit