aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-13 20:25:33 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-13 20:25:33 +0100
commita35b093c39c9dce7697d1daacecab199a44c9f40 (patch)
tree4c8a5b86e0ab38b898c28c49ba6509294070f006 /src/main/java/at/hannibal2/skyhanni/test
parent5a75b69da9f8b1cfa7705c6d6b9850d72b5a0ab6 (diff)
downloadskyhanni-a35b093c39c9dce7697d1daacecab199a44c9f40.tar.gz
skyhanni-a35b093c39c9dce7697d1daacecab199a44c9f40.tar.bz2
skyhanni-a35b093c39c9dce7697d1daacecab199a44c9f40.zip
Show the time it takes to kill the Slayer boss.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
index 983459531..0002e0db8 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
@@ -146,22 +146,22 @@ class LorenzTest {
SkyHanniMod.feature.dev.debugPos.renderString(text)
}
- @SubscribeEvent(priority = EventPriority.LOW, receiveCanceled = true)
+ @SubscribeEvent
fun onHypExplosions(event: ReceiveParticleEvent) {
-// if (!LorenzUtils.inSkyblock) return
-// when (event.type) {
-// EnumParticleTypes.EXPLOSION_LARGE,
-// EnumParticleTypes.EXPLOSION_HUGE,
-// EnumParticleTypes.EXPLOSION_NORMAL,
-// -> event.isCanceled = true
-//
-// else -> {}
-// }
+ if (!LorenzUtils.inSkyBlock) return
+ when (event.type) {
+ EnumParticleTypes.EXPLOSION_LARGE,
+ EnumParticleTypes.EXPLOSION_HUGE,
+ EnumParticleTypes.EXPLOSION_NORMAL,
+ -> event.isCanceled = true
+ else -> {}
+ }
}
@SubscribeEvent
fun onEnderTeleport(event: EnderTeleportEvent) {
-// event.isCanceled = true
+ if (!LorenzUtils.inSkyBlock) return
+ event.isCanceled = true
}
@SubscribeEvent