From c9080139998fadd90286d42292e69b99e2ec942a Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 26 Jul 2023 13:20:18 +0200 Subject: fixed error with patcher send coords detection --- .../at/hannibal2/skyhanni/features/misc/PatcherSendCoordinates.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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") } -- cgit