diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-26 19:49:29 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-26 19:49:29 +0100 |
commit | bfbafd913659f9d55585f02da8a0ae08dd7ca433 (patch) | |
tree | 4199d2d60b500660185d4dd23538d92a0b124317 /src/main/java | |
parent | fca3cf865a62b1cd2c9d272e627e5c206954b520 (diff) | |
download | skyhanni-bfbafd913659f9d55585f02da8a0ae08dd7ca433.tar.gz skyhanni-bfbafd913659f9d55585f02da8a0ae08dd7ca433.tar.bz2 skyhanni-bfbafd913659f9d55585f02da8a0ae08dd7ca433.zip |
Removing mob burrows after death.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt | 14 |
2 files changed, 11 insertions, 5 deletions
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 @@ -88,6 +87,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 animationLocation = null |