diff --git a/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/other/ResourcesHandler.kt b/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/other/ResourcesHandler.kt index 939e197..2d91b9a 100644 --- a/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/other/ResourcesHandler.kt +++ b/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/other/ResourcesHandler.kt @@ -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 (???)