Skip to content

Commit

Permalink
fix(plugin): parameter name shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
iGabyTM committed Mar 30, 2023
1 parent 2fa357a commit 876451b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class ResourcesHandler(plugin: ArcaneVouchers) {
it["list"] = Constant.NAMED_COLORS.keys.toList().sorted()
}

create("DyeColors") {
it["list"] = DyeColor.values().map { it.name }.sorted()
create("DyeColors") { yaml ->
yaml["list"] = DyeColor.values().map { it.name }.sorted()
}

// For some reason, on versions <= 1.12.2, the first value of the array is null (???)
Expand Down

0 comments on commit 876451b

Please sign in to comment.