aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-29 11:14:10 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-29 11:14:10 +0200
commit3569dec0ab32c357eb34cff79c200f379f3d19ce (patch)
treeeb266d940d253964d953cfca5563df9c27e5b0b0 /src/main/java/at/hannibal2/skyhanni/data
parente70a67bd5f4e0f0ca17bb1dd836a857b03c30cca (diff)
downloadskyhanni-3569dec0ab32c357eb34cff79c200f379f3d19ce.tar.gz
skyhanni-3569dec0ab32c357eb34cff79c200f379f3d19ce.tar.bz2
skyhanni-3569dec0ab32c357eb34cff79c200f379f3d19ce.zip
made path find condition not optional
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/IslandGraphs.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/IslandGraphs.kt b/src/main/java/at/hannibal2/skyhanni/data/IslandGraphs.kt
index bd417e5f7..73915c22d 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/IslandGraphs.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/IslandGraphs.kt
@@ -391,7 +391,7 @@ object IslandGraphs {
color: Color = LorenzColor.WHITE.toColor(),
onFound: () -> Unit = {},
allowRerouting: Boolean = false,
- condition: () -> Boolean = { true },
+ condition: () -> Boolean,
) {
reset()
currentTargetNode = this
@@ -415,7 +415,7 @@ object IslandGraphs {
color: Color = LorenzColor.WHITE.toColor(),
onFound: () -> Unit = {},
showGoalExact: Boolean = false,
- condition: () -> Boolean = { true },
+ condition: () -> Boolean,
) {
reset()
shouldAllowRerouting = false
@@ -428,7 +428,7 @@ object IslandGraphs {
color: Color = LorenzColor.WHITE.toColor(),
onFound: () -> Unit = {},
showGoalExact: Boolean = false,
- condition: () -> Boolean = { true },
+ condition: () -> Boolean,
) {
currentTarget = location
this.label = label