aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-26 13:20:18 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-26 13:20:18 +0200
commitc9080139998fadd90286d42292e69b99e2ec942a (patch)
tree13723acabcb58b751e6c80e5359869e185277ff2 /src/main/java/at/hannibal2/skyhanni
parent85ce8d3e3f021e18346bfd439b1b0f9486ac3a0c (diff)
downloadskyhanni-c9080139998fadd90286d42292e69b99e2ec942a.tar.gz
skyhanni-c9080139998fadd90286d42292e69b99e2ec942a.tar.bz2
skyhanni-c9080139998fadd90286d42292e69b99e2ec942a.zip
fixed error with patcher send coords detection
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/PatcherSendCoordinates.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/PatcherSendCoordinates.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/PatcherSendCoordinates.kt
index 3763881d7..195f1b06c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/PatcherSendCoordinates.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/PatcherSendCoordinates.kt
@@ -31,9 +31,9 @@ class PatcherSendCoordinates {
val message = event.message.removeColor()
pattern.matchMatcher(message) {
val playerName = group("playerName").split(" ").last()
- val x = group("x").toInt()
- val y = group("y").toInt()
- val z = group("z").toInt()
+ val x = group("x").trim().toInt()
+ val y = group("y").trim().toInt()
+ val z = group("z").trim().toInt()
patcherBeacon.add(PatcherBeacon(LorenzVec(x, y, z), playerName, System.currentTimeMillis() / 1000))
logger.log("got patcher coords and username")
}