diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-10-03 14:14:39 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-10-03 14:14:39 +0200 |
commit | 08f15c1fc11e8c3142c859fdff0c3e80afcab0fe (patch) | |
tree | a5e5522618d1dfd6bdf9b63eef63fd21c7dcb3c3 /src/main/java/at/hannibal2/skyhanni/data | |
parent | 075b7c517bb0a4f0c06156d351baba37b9317957 (diff) | |
download | skyhanni-08f15c1fc11e8c3142c859fdff0c3e80afcab0fe.tar.gz skyhanni-08f15c1fc11e8c3142c859fdff0c3e80afcab0fe.tar.bz2 skyhanni-08f15c1fc11e8c3142c859fdff0c3e80afcab0fe.zip |
Warps to the nearest warp point on the hub, if closer to the next burrow.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/EntityMovementData.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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() } } } |