aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test
diff options
context:
space:
mode:
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