aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-05 10:47:21 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-05 10:47:21 +0100
commitfd47344a8fb5c9b1657a2696bc298659b9458fd9 (patch)
treeeec6c34b391d674718b9e93b79c27faf37bf4da9 /src/main/java/at/hannibal2/skyhanni/utils
parentdfa6c8e5304b36dc9de9c177934d6cbddbd9868d (diff)
downloadskyhanni-fd47344a8fb5c9b1657a2696bc298659b9458fd9.tar.gz
skyhanni-fd47344a8fb5c9b1657a2696bc298659b9458fd9.tar.bz2
skyhanni-fd47344a8fb5c9b1657a2696bc298659b9458fd9.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
index 751271510..d4f35c2d8 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
@@ -431,10 +431,7 @@ object LorenzUtils {
&& tileSign.signText[3].unformattedText.removeColor() == "speed cap!")
}
- fun inIsland(island: IslandType) =
- inSkyBlock && (skyBlockIsland == island || island == IslandType.CATACOMBS && inDungeons)
-
- fun IslandType.isInIsland() = inIsland(this)
+ fun IslandType.isInIsland() = inSkyBlock && (skyBlockIsland == this || this == IslandType.CATACOMBS && inDungeons)
fun <K> MutableMap<K, Int>.addOrPut(key: K, number: Int): Int {
val currentValue = this[key] ?: 0