From f8c3a8f95291c8e89ad3f2455ebd87cf4f5fbe83 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Thu, 2 May 2024 09:31:10 +0200 Subject: Fix: Slayer warning rift (#1627) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../java/at/hannibal2/skyhanni/features/slayer/SlayerQuestWarning.kt | 2 +- src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerType.kt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/java') 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) ; } -- cgit