From 2d936ea4a2b32c3900fcbfe6c891fef6d874cb1c Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Mon, 2 Sep 2024 18:50:01 +0200 Subject: Exclude (seasonal) carnival warp from auto warps --- src/main/kotlin/util/WarpUtil.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/kotlin/util/WarpUtil.kt b/src/main/kotlin/util/WarpUtil.kt index c0ff996..f733af7 100644 --- a/src/main/kotlin/util/WarpUtil.kt +++ b/src/main/kotlin/util/WarpUtil.kt @@ -16,7 +16,11 @@ import moe.nea.firmament.repo.RepoManager import moe.nea.firmament.util.data.ProfileSpecificDataHolder object WarpUtil { - val warps: List get() = RepoManager.neuRepo.constants.islands.warps + val warps: Sequence get() = RepoManager.neuRepo.constants.islands.warps + .asSequence() + .filter { it.warp !in ignoredWarps } + + val ignoredWarps = setOf("carnival", "") @Serializable data class Data( -- cgit