From bfbafd913659f9d55585f02da8a0ae08dd7ca433 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 26 Feb 2023 19:49:29 +0100 Subject: Removing mob burrows after death. --- src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt | 2 +- .../skyhanni/features/event/diana/GriffinBurrowHelper.kt | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt index 458d94260..d6b1506a3 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt @@ -56,7 +56,7 @@ class HyPixelData { } @SubscribeEvent - fun onStatusBar(event: LorenzChatEvent) { + fun onChatMessage(event: LorenzChatEvent) { if (!hypixel) return val message = event.message.removeColor().lowercase() diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt index 0666581d4..187b66249 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt @@ -2,16 +2,15 @@ package at.hannibal2.skyhanni.features.event.diana import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.data.EntityMovementData -import at.hannibal2.skyhanni.events.BurrowDetectEvent -import at.hannibal2.skyhanni.events.BurrowDugEvent -import at.hannibal2.skyhanni.events.EntityMoveEvent -import at.hannibal2.skyhanni.events.SoopyGuessBurrowEvent +import at.hannibal2.skyhanni.events.* import at.hannibal2.skyhanni.utils.BlockUtils.getBlockAt import at.hannibal2.skyhanni.utils.LocationUtils import at.hannibal2.skyhanni.utils.LorenzColor +import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzVec import at.hannibal2.skyhanni.utils.RenderUtils.draw3DLine import at.hannibal2.skyhanni.utils.RenderUtils.drawColor +import at.hannibal2.skyhanni.utils.RenderUtils.drawDynamicText import at.hannibal2.skyhanni.utils.RenderUtils.drawString import net.minecraft.client.Minecraft import net.minecraft.init.Blocks @@ -87,6 +86,13 @@ class GriffinBurrowHelper { } } + @SubscribeEvent + fun onChatMessage(event: LorenzChatEvent) { + if (event.message.startsWith("§c ☠ §r§7You were killed by §r")) { + particleBurrows.keys.removeIf { particleBurrows[it] == BurrowType.MOB } + } + } + @SubscribeEvent fun onWorldChange(event: WorldEvent.Load) { guessLocation = null -- cgit