Updated libreforge

This commit is contained in:
Auxilor 2024-01-02 13:43:04 +00:00
parent 906471e930
commit ec4babbc8a
3 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ class EcoEnchantsPlugin : LibreforgePlugin() {
}
override fun handleEnable() {
registerHolderProvider(EnchantFinder.provider)
registerHolderProvider(EnchantFinder.toHolderProvider())
registerSpecificRefreshFunction<LivingEntity> {
it.clearEnchantmentCache()

View File

@ -41,7 +41,7 @@ object EnchantFinder : ItemHolderFinder<EcoEnchantLevel>() {
private val LivingEntity.cachedLevels: List<ProvidedLevel>
get() = levelCache.get(this.uniqueId) {
provider.provide(this.toDispatcher())
toHolderProvider().provide(this.toDispatcher())
.mapNotNull {
val level = it.holder as? EcoEnchantLevel ?: return@mapNotNull null
val item = it.provider as? ItemStack ?: return@mapNotNull null

View File

@ -1,5 +1,5 @@
#libreforge-updater
#Wed Dec 27 14:18:03 CET 2023
kotlin.code.style=official
libreforge-version=4.52.0
libreforge-version=4.53.0
version=12.0.0