From ec4babbc8ac7a40d2eefc3adb013858832d69f99 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 2 Jan 2024 13:43:04 +0000 Subject: [PATCH] Updated libreforge --- .../src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt | 2 +- .../main/kotlin/com/willfp/ecoenchants/target/EnchantFinder.kt | 2 +- gradle.properties | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt index e9b4841e..eb5492b0 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt @@ -74,7 +74,7 @@ class EcoEnchantsPlugin : LibreforgePlugin() { } override fun handleEnable() { - registerHolderProvider(EnchantFinder.provider) + registerHolderProvider(EnchantFinder.toHolderProvider()) registerSpecificRefreshFunction { it.clearEnchantmentCache() diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/target/EnchantFinder.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/target/EnchantFinder.kt index 9fba3b71..984c351b 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/target/EnchantFinder.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/target/EnchantFinder.kt @@ -41,7 +41,7 @@ object EnchantFinder : ItemHolderFinder() { private val LivingEntity.cachedLevels: List get() = levelCache.get(this.uniqueId) { - provider.provide(this.toDispatcher()) + toHolderProvider().provide(this.toDispatcher()) .mapNotNull { val level = it.holder as? EcoEnchantLevel ?: return@mapNotNull null val item = it.provider as? ItemStack ?: return@mapNotNull null diff --git a/gradle.properties b/gradle.properties index 86e126fa..8b77b7b6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ #libreforge-updater #Wed Dec 27 14:18:03 CET 2023 kotlin.code.style=official -libreforge-version=4.52.0 +libreforge-version=4.53.0 version=12.0.0