mirror of
https://github.com/Auxilor/EcoArmor.git
synced 2026-01-04 15:31:51 +00:00
Updated libreforge
This commit is contained in:
@@ -62,7 +62,7 @@ allprojects {
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.willfp:eco:6.20.0'
|
||||
implementation 'com.willfp:libreforge:3.14.2'
|
||||
implementation 'com.willfp:libreforge:3.14.3'
|
||||
|
||||
compileOnly 'org.jetbrains:annotations:23.0.0'
|
||||
|
||||
|
||||
@@ -28,12 +28,6 @@ class EcoArmorPlugin : LibReforgePlugin(687, 10002, "&c") {
|
||||
registerHolderProvider { ListUtils.toSingletonList(ArmorUtils.getActiveSet(it)) }
|
||||
}
|
||||
|
||||
override fun handleEnableAdditional() {
|
||||
ecoArmorYml.getSubsections("chains").mapNotNull {
|
||||
EffectChains.compile(it, "Effect Chains")
|
||||
}
|
||||
}
|
||||
|
||||
override fun handleReloadAdditional() {
|
||||
logger.info(Tiers.values().size.toString() + " Tiers Loaded")
|
||||
logger.info(ArmorSets.values().size.toString() + " Sets Loaded")
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.google.common.collect.HashBiMap
|
||||
import com.google.common.collect.ImmutableList
|
||||
import com.willfp.eco.core.config.updating.ConfigUpdater
|
||||
import com.willfp.ecoarmor.EcoArmorPlugin
|
||||
import com.willfp.libreforge.chains.EffectChains
|
||||
|
||||
object ArmorSets {
|
||||
/**
|
||||
@@ -41,6 +42,9 @@ object ArmorSets {
|
||||
@ConfigUpdater
|
||||
@JvmStatic
|
||||
fun update(plugin: EcoArmorPlugin) {
|
||||
plugin.ecoArmorYml.getSubsections("chains").mapNotNull {
|
||||
EffectChains.compile(it, "Effect Chains")
|
||||
}
|
||||
for (set in values()) {
|
||||
removeSet(set)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user