From 876451be75d06c11be16afd69dfa5f2bfc8aa734 Mon Sep 17 00:00:00 2001 From: iGabyTM Date: Thu, 30 Mar 2023 12:43:07 +0300 Subject: [PATCH] fix(plugin): parameter name shadow --- .../gabytm/minecraft/arcanevouchers/other/ResourcesHandler.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (???)