Skip to content

Commit

Permalink
fix: Fix crash if using kebab case names in config
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Dec 3, 2024
1 parent fa4c4bc commit f49c664
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/com/xpdustry/nohorny/NoHornyPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import arc.Core
import arc.util.CommandHandler
import com.sksamuel.hoplite.ConfigException
import com.sksamuel.hoplite.ConfigLoaderBuilder
import com.sksamuel.hoplite.KebabCaseParamMapper
import com.sksamuel.hoplite.addPathSource
import com.xpdustry.nohorny.image.ImageProcessorImpl
import com.xpdustry.nohorny.image.ImageRendererImpl
Expand Down Expand Up @@ -71,6 +72,7 @@ public class NoHornyPlugin : Plugin() {
.addDefaultDecoders()
.addDefaultParamMappers()
.addDefaultParsers()
.addParameterMapper(KebabCaseParamMapper)
.addPathSource(file)
.withReport()
.withReportPrintFn(logger::debug)
Expand Down

0 comments on commit f49c664

Please sign in to comment.