mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-21 14:55:17 +01:00
Fix
This commit is contained in:
parent
5c422ac240
commit
906471e930
@ -74,7 +74,7 @@ class EcoEnchantsPlugin : LibreforgePlugin() {
|
||||
}
|
||||
|
||||
override fun handleEnable() {
|
||||
registerHolderProvider(EnchantFinder.toHolderProvider())
|
||||
registerHolderProvider(EnchantFinder.provider)
|
||||
|
||||
registerSpecificRefreshFunction<LivingEntity> {
|
||||
it.clearEnchantmentCache()
|
||||
|
@ -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>>()
|
||||
|
Loading…
Reference in New Issue
Block a user