Compare commits

...
Author SHA1 Message Date
Sterrezo b2f002d630 Update PosableState.kt 2026-10-03 14:44:28 +02:00
@@ -545,11 +545,12 @@ abstract class PosableState : Schedulable {
primaryAnimation?.animation?.applyEffects(entity, this, previousSeconds, newSeconds) primaryAnimation?.animation?.applyEffects(entity, this, previousSeconds, newSeconds)
currentModel?.let { model -> currentModel?.let { model ->
val pose = currentPose?.let { model.poses[it] } val pose = currentPose?.let { model.poses[it] }
// Effects start playing from pose animations as long as the intensity is above 0.5. Pretty sloppy honestly.
pose?.animations pose?.animations
?.asSequence() ?.asSequence()
?.filter { shouldIdleRun(it, 0.5F) && it.condition(this) } ?.filter { it.condition(this) }
?.forEach { it.applyEffects(entity, this, previousSeconds, newSeconds) } ?.forEach {
it.applyEffects(entity, this, previousSeconds, newSeconds)
}
} }
} }