Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Dec 27, 2023
1 parent 5c422ac commit 906471e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class EcoEnchantsPlugin : LibreforgePlugin() {
}

override fun handleEnable() {
registerHolderProvider(EnchantFinder.toHolderProvider())
registerHolderProvider(EnchantFinder.provider)

registerSpecificRefreshFunction<LivingEntity> {
it.clearEnchantmentCache()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import java.util.UUID
import java.util.concurrent.TimeUnit

object EnchantFinder : ItemHolderFinder<EcoEnchantLevel>() {
private val provider = this.toHolderProvider()
private val levelCache = Caffeine.newBuilder()
.expireAfterWrite(1, TimeUnit.SECONDS)
.build<UUID, List<ProvidedLevel>>()
Expand Down

0 comments on commit 906471e

Please sign in to comment.