blob: 302beb9cade81e8ce3edcca654305861e5550dc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.dulkirfabric.features
import com.dulkirfabric.config.DulkirConfig
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) {
if (!DulkirConfig.configOptions.disableExplosionParticles) return
val particle = event.particle
if (particle is ExplosionLargeParticle) {
event.cancel()
}
}
}
|