mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 02:45:13 -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 typesConfig = connection.profiles.particle.types
|
||||||
val invokers = listOf(
|
val invokers = listOf(
|
||||||
CallbackEventListener.of<ExplosionEvent> {
|
CallbackEventListener.of<ExplosionEvent> {
|
||||||
if (typesConfig.explosions) {
|
if (!typesConfig.explosions) {
|
||||||
return@of
|
return@of
|
||||||
}
|
}
|
||||||
if (it.power >= 2.0f) {
|
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