Skip to content

Commit

Permalink
fix jumpEffect crashing the game (#1724)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ell1ott authored Dec 22, 2023
1 parent 3ac7d3b commit e564be3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ object ModuleJumpEffect : Module("JumpEffect", Category.RENDER) {

renderEnvironmentForWorld(matrixStack) {
circles.forEach {
val progress = animCurve.at((it.right + event.partialTicks) / lifetime)
val progress = animCurve
.at((it.right + event.partialTicks) / lifetime)
.coerceIn(0f..1f)

withPosition(it.left) {
drawGradientCircle(
endRadius.endInclusive * progress,
Expand Down

0 comments on commit e564be3

Please sign in to comment.