Skip to content

Commit e95ef0e

Browse files
committed
default sort by closest in break context
1 parent af47ba7 commit e95ef0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/kotlin/com/lambda/interaction/construction/context/BreakContext.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ data class BreakContext(
6262
BreakConfig.SortMode.Rotation -> it.rotation.target.angleDistance
6363
BreakConfig.SortMode.Random -> it.random
6464
}
65+
}.thenBy {
66+
it.distance
6567
}.thenBy {
6668
it.instantBreak
6769
}.thenByDescending {

0 commit comments

Comments
 (0)