Skip to content

Commit

Permalink
feat(plugin24): allow setting direction for empty segment
Browse files Browse the repository at this point in the history
  • Loading branch information
xeruf committed Jun 10, 2024
1 parent 420b651 commit 385999f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/src/main/kotlin/sc/plugin2024/Segment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ data class Segment(
fun inDirection(previousCenter: CubeCoordinates, direction: CubeDirection, fields: SegmentFields) =
Segment(direction, previousCenter + direction.vector * PluginConstants.SEGMENT_FIELDS_WIDTH, fields)

fun empty(center: CubeCoordinates = CubeCoordinates.ORIGIN) =
Segment(CubeDirection.RIGHT, center, generateSegment(false, arrayOf()))
fun empty(center: CubeCoordinates = CubeCoordinates.ORIGIN, direction: CubeDirection = CubeDirection.RIGHT) =
Segment(direction, center, generateSegment(false, arrayOf()))
}
}

Expand Down

0 comments on commit 385999f

Please sign in to comment.