diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-05 23:45:26 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-05 23:45:26 +0200 |
commit | fd30e258e1071e15bda4e9cf3a20a389cd01f61e (patch) | |
tree | 3ef08982beac4706f771dbfa1af982a573ad5094 /src/main/java | |
parent | 99d7b37cfdeb3556b2e77905ec0488ba5644bd2d (diff) | |
download | skyhanni-fd30e258e1071e15bda4e9cf3a20a389cd01f61e.tar.gz skyhanni-fd30e258e1071e15bda4e9cf3a20a389cd01f61e.tar.bz2 skyhanni-fd30e258e1071e15bda4e9cf3a20a389cd01f61e.zip |
Fixing infer
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/mining/HighlightMiningCommissionMobs.kt | 4 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/HighlightMiningCommissionMobs.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/HighlightMiningCommissionMobs.kt index c2ae58673..42c796c5a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/mining/HighlightMiningCommissionMobs.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/mining/HighlightMiningCommissionMobs.kt @@ -9,7 +9,7 @@ import at.hannibal2.skyhanni.events.withAlpha import at.hannibal2.skyhanni.mixins.hooks.RenderLivingEntityHelper import at.hannibal2.skyhanni.utils.EntityUtils.hasMaxHealth import at.hannibal2.skyhanni.utils.LorenzColor -import at.hannibal2.skyhanni.utils.LorenzUtils.inIsland +import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland import net.minecraft.client.Minecraft import net.minecraft.entity.EntityLivingBase import net.minecraft.entity.monster.EntityEndermite @@ -84,5 +84,5 @@ class HighlightMiningCommissionMobs { } fun isEnabled() = config.highlightCommissionMobs && - (IslandType.DWARVEN_MINES.inIsland() || IslandType.CRYSTAL_HOLLOWS.inIsland()) + (IslandType.DWARVEN_MINES.isInIsland() || IslandType.CRYSTAL_HOLLOWS.isInIsland()) } diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt index 9f6c9cc93..2c355b402 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt @@ -369,7 +369,7 @@ object LorenzUtils { fun inIsland(island: IslandType) = inSkyBlock && skyBlockIsland == island - fun IslandType.inIsland() = inIsland(this) + fun IslandType.isInIsland() = inIsland(this) fun <K, N : Number> MutableMap<K, N>.addOrPut(item: K, amount: N) { val old = this[item] ?: 0 |