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 eb5492b0..e9b4841e 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.toHolderProvider()) + registerHolderProvider(EnchantFinder.provider) 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 38a5b6d9..9fba3b71 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 @@ -14,7 +14,6 @@ import java.util.UUID import java.util.concurrent.TimeUnit object EnchantFinder : ItemHolderFinder() { - private val provider = this.toHolderProvider() private val levelCache = Caffeine.newBuilder() .expireAfterWrite(1, TimeUnit.SECONDS) .build>()