aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-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(