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 | 4ff0ed2e6f4b75cfc425cec741557765048bf358 (patch) | |
| tree | 4199d2d60b500660185d4dd23538d92a0b124317 | |
| parent | 7a13ed422d41cbf4b9446972019d7e166d208b29 (diff) | |
| download | SkyHanni-4ff0ed2e6f4b75cfc425cec741557765048bf358.tar.gz SkyHanni-4ff0ed2e6f4b75cfc425cec741557765048bf358.tar.bz2 SkyHanni-4ff0ed2e6f4b75cfc425cec741557765048bf358.zip | |
Removing mob burrows after death.
| -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 |
