aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/features')
-rw-r--r--src/main/kotlin/com/dulkirfabric/features/CullExplosionParticles.kt19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/features/CullExplosionParticles.kt b/src/main/kotlin/com/dulkirfabric/features/CullExplosionParticles.kt
new file mode 100644
index 0000000..8c034b6
--- /dev/null
+++ b/src/main/kotlin/com/dulkirfabric/features/CullExplosionParticles.kt
@@ -0,0 +1,19 @@
+package com.dulkirfabric.features
+
+import com.dulkirfabric.events.AddParticleEvent
+import meteordevelopment.orbit.EventHandler
+import net.minecraft.client.particle.ExplosionLargeParticle
+
+/**
+ * Remove nearby Explosions that would be intrusive visually
+ */
+object CullExplosionParticles {
+
+ @EventHandler
+ fun onParticle(event: AddParticleEvent) {
+ val particle = event.particle
+ if (particle is ExplosionLargeParticle) {
+ event.cancel()
+ }
+ }
+} \ No newline at end of file