diff options
author | Linnea Gräf <nea@nea.moe> | 2024-09-02 18:50:01 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-09-02 18:50:01 +0200 |
commit | 2d936ea4a2b32c3900fcbfe6c891fef6d874cb1c (patch) | |
tree | ed58d6f7c99e8896f269996778e9f364b99e4ae4 /src/main/kotlin/util | |
parent | 20db57b43c9bc476e5af969552bcbec6729097da (diff) | |
download | Firmament-2d936ea4a2b32c3900fcbfe6c891fef6d874cb1c.tar.gz Firmament-2d936ea4a2b32c3900fcbfe6c891fef6d874cb1c.tar.bz2 Firmament-2d936ea4a2b32c3900fcbfe6c891fef6d874cb1c.zip |
Exclude (seasonal) carnival warp from auto warps
Diffstat (limited to 'src/main/kotlin/util')
-rw-r--r-- | src/main/kotlin/util/WarpUtil.kt | 6 |
1 files changed, 5 insertions, 1 deletions
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<Islands.Warp> get() = RepoManager.neuRepo.constants.islands.warps + val warps: Sequence<Islands.Warp> get() = RepoManager.neuRepo.constants.islands.warps + .asSequence() + .filter { it.warp !in ignoredWarps } + + val ignoredWarps = setOf("carnival", "") @Serializable data class Data( |