aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-05-02 09:31:10 +0200
committerGitHub <noreply@github.com>2024-05-02 09:31:10 +0200
commitf8c3a8f95291c8e89ad3f2455ebd87cf4f5fbe83 (patch)
tree05b937eb81e51459f1529d2e89d2c94ae3037675
parente26deff1ee5ed11be9ac128ca8b447eadcec2f1c (diff)
downloadskyhanni-f8c3a8f95291c8e89ad3f2455ebd87cf4f5fbe83.tar.gz
skyhanni-f8c3a8f95291c8e89ad3f2455ebd87cf4f5fbe83.tar.bz2
skyhanni-f8c3a8f95291c8e89ad3f2455ebd87cf4f5fbe83.zip
Fix: Slayer warning rift (#1627)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerQuestWarning.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerType.kt3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerQuestWarning.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerQuestWarning.kt
index 331d3f111..a90d0eb9f 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerQuestWarning.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerQuestWarning.kt
@@ -146,7 +146,7 @@ class SlayerQuestWarning {
@SubscribeEvent
fun onEntityHealthUpdate(event: EntityHealthUpdateEvent) {
- if (!(LorenzUtils.inSkyBlock)) return
+ if (!LorenzUtils.inSkyBlock) return
val entity = event.entity
if (entity.getLorenzVec().distanceToPlayer() < 6 && isSlayerMob(entity)) {
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerType.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerType.kt
index 44937dd7f..6d692e5da 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerType.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerType.kt
@@ -1,6 +1,5 @@
package at.hannibal2.skyhanni.features.slayer
-import net.minecraft.client.entity.EntityOtherPlayerMP
import net.minecraft.entity.monster.EntityBlaze
import net.minecraft.entity.monster.EntityEnderman
import net.minecraft.entity.monster.EntitySpider
@@ -13,6 +12,6 @@ enum class SlayerType(val displayName: String, val clazz: Class<*>) {
SVEN("Sven Packmaster", EntityWolf::class.java),
VOID("Voidgloom Seraph", EntityEnderman::class.java),
INFERNO("Inferno Demonlord", EntityBlaze::class.java),
- VAMPIRE("Riftstalker Bloodfiend", EntityOtherPlayerMP::class.java)
+ VAMPIRE("Riftstalker Bloodfiend", EntityZombie::class.java)
;
}