aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-24 11:58:34 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-24 11:58:34 +0200
commit624b029f2c7f958c85efcbb6c8963ec1d14df297 (patch)
treeb966e6fd9f9caab23896b12c92fc373969d91ada /src
parentcc8a3dba69e8f1474a33a7e47b32d452f11735fd (diff)
downloadskyhanni-624b029f2c7f958c85efcbb6c8963ec1d14df297.tar.gz
skyhanni-624b029f2c7f958c85efcbb6c8963ec1d14df297.tar.bz2
skyhanni-624b029f2c7f958c85efcbb6c8963ec1d14df297.zip
hiding no area from navigation
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/pathfind/NavigationHelper.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/pathfind/NavigationHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/pathfind/NavigationHelper.kt
index b27292559..3e15e404c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/pathfind/NavigationHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/pathfind/NavigationHelper.kt
@@ -77,6 +77,8 @@ object NavigationHelper {
private fun calculateNames(distances: Map<GraphNode, Double>): MutableMap<String, GraphNode> {
val names = mutableMapOf<String, GraphNode>()
for (node in distances.sorted().keys) {
+ // hiding areas that are none
+ if (node.name == "no_area") continue
val tag = node.tags.first { it in allowedTags }
val name = "${node.name} §7(${tag.displayName}§7)"
if (name in names) continue