From 906471e93076a0beef05c41df4da73dedab80d28 Mon Sep 17 00:00:00 2001 From: Will FP Date: Wed, 27 Dec 2023 17:15:54 +0100 Subject: [PATCH] Fix --- .../src/main/kotlin/com/willfp/ecoenchants/EcoEnchantsPlugin.kt | 2 +- .../main/kotlin/com/willfp/ecoenchants/target/EnchantFinder.kt | 1 - 2 files changed, 1 insertion(+), 2 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 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>()