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