From e66b753d30512274b747bc7350f18f415a150bf5 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 30 Sep 2024 09:28:36 +0200 Subject: added parameter `/shcopylocation pathfind` --- .../skyhanni/test/SkyHanniDebugsAndTests.kt | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt index 6c34fedda..07fc7b81a 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt @@ -138,7 +138,8 @@ object SkyHanniDebugsAndTests { } @Suppress("EmptyFunctionBlock") - private fun asyncTest(args: Array) {} + private fun asyncTest(args: Array) { + } fun findNullConfig(args: Array) { println("start null finder") @@ -327,9 +328,15 @@ object SkyHanniDebugsAndTests { val x = (location.x + 0.001).roundTo(1) val y = (location.y + 0.001).roundTo(1) val z = (location.z + 0.001).roundTo(1) - if (args.size == 1 && args[0].equals("json", false)) { - OSUtils.copyToClipboard("\"$x:$y:$z\"") - return + if (args.size == 1) { + if (args[0].equals("json", false)) { + OSUtils.copyToClipboard("\"$x:$y:$z\"") + return + } + if (args[0].equals("pathfind", false)) { + OSUtils.copyToClipboard("`/shtestwaaypoint $x $y $z pathfind`") + return + } } OSUtils.copyToClipboard("LorenzVec($x, $y, $z)") @@ -487,7 +494,8 @@ object SkyHanniDebugsAndTests { @SubscribeEvent @Suppress("EmptyFunctionBlock") - fun onChat(event: LorenzChatEvent) {} + fun onChat(event: LorenzChatEvent) { + } @SubscribeEvent fun onRenderOverlay(event: GuiRenderEvent.GuiOverlayRenderEvent) { @@ -578,8 +586,7 @@ object SkyHanniDebugsAndTests { }.editCopy { this.add( 0, - generateSequence(scale) { it + 0.1 }.take(25).map { Renderable.string(it.roundTo(1).toString()) } - .toList(), + generateSequence(scale) { it + 0.1 }.take(25).map { Renderable.string(it.roundTo(1).toString()) }.toList(), ) } config.debugItemPos.renderRenderables( -- cgit