Skip to content

Commit

Permalink
fix: default paged layer parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Nov 12, 2024
1 parent e40b5aa commit 9c66c98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ kotlin_version=2.0.21
fabric_kotlin_version=1.12.3

# mod properties
mod_version=1.5.3
mod_version=1.5.4
maven_group=net.mcbrawls
mod_id=slate
4 changes: 2 additions & 2 deletions src/main/kotlin/net/mcbrawls/slate/Slate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ open class Slate {
width: Int,
height: Int,
factory: SlateLayer.Factory = SlateLayer.Factory(::SlateLayer),
builder: SlateLayer.() -> Unit
builder: SlateLayer.() -> Unit,
) : SlateLayer {
val layer = factory.create(width, height)
layer.apply(builder)
Expand All @@ -115,7 +115,7 @@ open class Slate {
height: Int,
maxCount: Int,
crossinline slotFactory: (Int) -> Tile?,
builder: SlateLayer.() -> Unit
builder: SlateLayer.() -> Unit = {},
) : PagedSlateLayer {
val layer = object : PagedSlateLayer(maxCount, width, height) {
override fun createTile(index: Int): Tile? {
Expand Down

0 comments on commit 9c66c98

Please sign in to comment.