From 08f15c1fc11e8c3142c859fdff0c3e80afcab0fe Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 3 Oct 2022 14:14:39 +0200 Subject: Warps to the nearest warp point on the hub, if closer to the next burrow. --- src/main/java/at/hannibal2/skyhanni/data/EntityMovementData.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/data') diff --git a/src/main/java/at/hannibal2/skyhanni/data/EntityMovementData.kt b/src/main/java/at/hannibal2/skyhanni/data/EntityMovementData.kt index 26e08356b..2e4d13da6 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/EntityMovementData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/EntityMovementData.kt @@ -35,7 +35,7 @@ class EntityMovementData { val distance = newLocation.distance(oldLocation) if (distance > 0.01) { entityLocation[entity] = newLocation - EntityMoveEvent(entity, oldLocation, newLocation).postAndCatch() + EntityMoveEvent(entity, oldLocation, newLocation, distance).postAndCatch() } } } -- cgit