From bb33bddf0b8cbe4e42d902d377d298efbfe5a580 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 29 Apr 2023 17:19:50 +0100 Subject: [PATCH] libreforge-updater --- build.gradle.kts | 2 +- .../com/willfp/ecoenchants/display/EnchantmentFormatting.kt | 3 ++- gradle.properties | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 0f5cf944..6baa3c1a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -40,7 +40,7 @@ allprojects { } dependencies { - compileOnly("com.willfp:eco:6.55.0") + compileOnly("com.willfp:eco:6.56.0") compileOnly("org.jetbrains:annotations:23.0.0") compileOnly("org.jetbrains.kotlin:kotlin-stdlib:1.7.10") compileOnly("com.github.ben-manes.caffeine:caffeine:3.1.0") diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/display/EnchantmentFormatting.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/display/EnchantmentFormatting.kt index 7794cdc1..55386b88 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/display/EnchantmentFormatting.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/display/EnchantmentFormatting.kt @@ -4,6 +4,7 @@ import com.github.benmanes.caffeine.cache.Cache import com.github.benmanes.caffeine.cache.Caffeine import com.willfp.eco.core.config.updating.ConfigUpdater import com.willfp.eco.core.integrations.placeholder.PlaceholderManager +import com.willfp.eco.core.placeholder.context.placeholderContext import com.willfp.eco.util.NumberUtils import com.willfp.eco.util.StringUtils import com.willfp.ecoenchants.EcoEnchantsPlugin @@ -96,7 +97,7 @@ fun EcoEnchantLike.getFormattedDescription(level: Int): List { var i = 1 for (placeholder in placeholders) { - val translated = PlaceholderManager.translatePlaceholders(placeholder, null) + val translated = PlaceholderManager.translatePlaceholders(placeholder) mockPlaceholderMap[i] = translated val length = ChatColor.stripColor(translated)!!.length diff --git a/gradle.properties b/gradle.properties index 82975c6b..c58a1294 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ #libreforge-updater -#Tue Apr 25 16:06:32 BST 2023 +#Sat Apr 29 17:19:50 BST 2023 kotlin.code.style=official -libreforge-version=4.6.0 -version=10.6.0 +libreforge-version=4.7.0 +version=10.7.0