aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-30 09:28:36 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-30 09:28:36 +0200
commite66b753d30512274b747bc7350f18f415a150bf5 (patch)
treea3be2bfcea9bb02549fe1f54757985da4a6b30e0 /src/main/java/at/hannibal2/skyhanni/test
parent975b1b5dcc08bf4b0277d19ebe7a66eee2b006e7 (diff)
downloadskyhanni-e66b753d30512274b747bc7350f18f415a150bf5.tar.gz
skyhanni-e66b753d30512274b747bc7350f18f415a150bf5.tar.bz2
skyhanni-e66b753d30512274b747bc7350f18f415a150bf5.zip
added parameter `/shcopylocation pathfind`
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt21
1 files 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<String>) {}
+ private fun asyncTest(args: Array<String>) {
+ }
fun findNullConfig(args: Array<String>) {
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(