From 624b029f2c7f958c85efcbb6c8963ec1d14df297 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 24 Sep 2024 11:58:34 +0200 Subject: hiding no area from navigation --- .../at/hannibal2/skyhanni/features/misc/pathfind/NavigationHelper.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/features') 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): MutableMap { val names = mutableMapOf() 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 -- cgit