diff options
author | inglettronald <inglettronald@gmail.com> | 2023-07-16 07:11:23 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-07-16 07:11:23 -0500 |
commit | 46e64e85b65d3a6d896f352a7b9de8323870c96d (patch) | |
tree | 00b006433f493e24b1036f3d2b33e203ce5fbf25 /src/main/kotlin/com/dulkirfabric/features/CullExplosionParticles.kt | |
parent | 59f0d43c301b926bef01439adb7ab2a5d465837b (diff) | |
download | DulkirMod-Fabric-46e64e85b65d3a6d896f352a7b9de8323870c96d.tar.gz DulkirMod-Fabric-46e64e85b65d3a6d896f352a7b9de8323870c96d.tar.bz2 DulkirMod-Fabric-46e64e85b65d3a6d896f352a7b9de8323870c96d.zip |
Explosion Particles Culling Option
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/features/CullExplosionParticles.kt')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/features/CullExplosionParticles.kt | 19 |
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 |