mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-15 10:25:06 -04:00
fix explosion particle config setting
This commit is contained in:
parent
9f0ca282fa
commit
9b1ae46aeb
@ -32,7 +32,7 @@ object DefaultParticleBehavior {
|
||||
val typesConfig = connection.profiles.particle.types
|
||||
val invokers = listOf(
|
||||
CallbackEventListener.of<ExplosionEvent> {
|
||||
if (typesConfig.explosions) {
|
||||
if (!typesConfig.explosions) {
|
||||
return@of
|
||||
}
|
||||
if (it.power >= 2.0f) {
|
||||
@ -64,6 +64,6 @@ object DefaultParticleBehavior {
|
||||
},
|
||||
)
|
||||
|
||||
connection.register(*invokers.toTypedArray())
|
||||
connection.events.register(*invokers.toTypedArray())
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user