Skip to content

Commit

Permalink
Merge branch 'Auxilor:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
LangZongz authored Dec 28, 2023
2 parents a101289 + 906471e commit 57c53c6
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 57c53c6

Please sign in to comment.