aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-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