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