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() {
|
override fun handleEnable() {
|
||||||
registerHolderProvider(EnchantFinder.toHolderProvider())
|
registerHolderProvider(EnchantFinder.provider)
|
||||||
|
|
||||||
registerSpecificRefreshFunction<LivingEntity> {
|
registerSpecificRefreshFunction<LivingEntity> {
|
||||||
it.clearEnchantmentCache()
|
it.clearEnchantmentCache()
|
||||||
|
@ -14,7 +14,6 @@ import java.util.UUID
|
|||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
object EnchantFinder : ItemHolderFinder<EcoEnchantLevel>() {
|
object EnchantFinder : ItemHolderFinder<EcoEnchantLevel>() {
|
||||||
private val provider = this.toHolderProvider()
|
|
||||||
private val levelCache = Caffeine.newBuilder()
|
private val levelCache = Caffeine.newBuilder()
|
||||||
.expireAfterWrite(1, TimeUnit.SECONDS)
|
.expireAfterWrite(1, TimeUnit.SECONDS)
|
||||||
.build<UUID, List<ProvidedLevel>>()
|
.build<UUID, List<ProvidedLevel>>()
|
||||||
|
Loading…
Reference in New Issue
Block a user