Skip to content

Commit d91c16b

Browse files
committed
fix: rare crash involving circle rendering
1 parent e625ae0 commit d91c16b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/util/render/RenderCircleProgress.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ object RenderCircleProgress {
5050
matrices.translate(0F, -1F, 0F)
5151
val sections = state.angleRadians.nonNegligibleSubSectionsAlignedWith((τ / 8f).toFloat())
5252
.zipWithNext().toList()
53+
if (sections.isEmpty()) return
5354
val u1 = state.u1
5455
val u2 = state.u2
5556
val v1 = state.v1

0 commit comments

Comments
 (0)