diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-13 17:07:52 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-13 17:07:52 +0100 |
commit | 5a75b69da9f8b1cfa7705c6d6b9850d72b5a0ab6 (patch) | |
tree | 467fe77daa63ab58e196d54da40c41c59f546f6b /src/main | |
parent | 2bf12758c3079abf2611156aa00ef226d5ee4f94 (diff) | |
download | skyhanni-5a75b69da9f8b1cfa7705c6d6b9850d72b5a0ab6.tar.gz skyhanni-5a75b69da9f8b1cfa7705c6d6b9850d72b5a0ab6.tar.bz2 skyhanni-5a75b69da9f8b1cfa7705c6d6b9850d72b5a0ab6.zip |
Barbarian Duke Damage Indicator only starts showing after getting close.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java index 30957537d..73b54a661 100644 --- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java +++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java @@ -69,7 +69,7 @@ import java.util.List; public class SkyHanniMod { public static final String MODID = "skyhanni"; - public static final String VERSION = "0.16"; + public static final String VERSION = "0.17.UNRELEASED"; public static Features feature; diff --git a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt index 0be33f168..543949cce 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.features.dungeon.DungeonData import at.hannibal2.skyhanni.utils.EntityUtils.hasBossHealth import at.hannibal2.skyhanni.utils.EntityUtils.hasMaxHealth import at.hannibal2.skyhanni.utils.EntityUtils.hasNameTagWith +import at.hannibal2.skyhanni.utils.LocationUtils import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzVec import at.hannibal2.skyhanni.utils.StringUtils.matchRegex @@ -206,7 +207,9 @@ class MobFinder { return EntityResult(bossType = BossType.NETHER_MAGE_OUTLAW) } if (entity.name == "DukeBarb ") { - return EntityResult(bossType = BossType.NETHER_BARBARIAN_DUKE) + if (entity.getLorenzVec().distance(LocationUtils.playerLocation()) < 30) { + return EntityResult(bossType = BossType.NETHER_BARBARIAN_DUKE) + } } } if (entity is EntityWither) { |