From 157d61a509e994e88ce59f2b14fed55948482458 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 1 Nov 2023 09:42:37 +0100 Subject: Fixed diana warp key not working. --- .../at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/event') diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt index befe55cf9..32fa93e6d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt @@ -24,7 +24,7 @@ class BurrowWarpHelper { if (event.keyCode != config.keyBindWarp) return currentWarp?.let { - if (lastWarpTime.passedSince() < 5.seconds) { + if (lastWarpTime.passedSince() > 5.seconds) { lastWarpTime = SimpleTimeMark.now() LorenzUtils.sendCommandToServer("warp " + currentWarp?.name) lastWarp = currentWarp @@ -96,4 +96,4 @@ class BurrowWarpHelper { fun distance(other: LorenzVec): Double = other.distance(location) + extraBlocks } -} \ No newline at end of file +} -- cgit