Skip to content

Commit

Permalink
fix issue with parent possibly being null
Browse files Browse the repository at this point in the history
  • Loading branch information
camnwalter committed Oct 31, 2023
1 parent 47a268e commit 8003d01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ScreenshotsConfig {
}
.build()

fun createScreen(parent: Screen): Screen {
fun createScreen(parent: Screen?): Screen {
return YetAnotherConfigLib.create(CONFIG) { defaults: ScreenshotsConfig, config: ScreenshotsConfig, builder: YetAnotherConfigLib.Builder ->
val pauseGameWhileCroppingOption: Option<Boolean> = Option.createBuilder<Boolean>()
.name(Text.translatable("screenshots.setting.pause_crop.title"))
Expand Down

0 comments on commit 8003d01

Please sign in to comment.