9
0
mirror of https://github.com/Auxilor/Reforges.git synced 2025-12-21 16:09:20 +00:00

Fixed suppression

This commit is contained in:
Auxilor
2022-05-22 18:34:03 +01:00
parent cf9cbef409
commit f884fe24f6

View File

@@ -3,7 +3,7 @@ package com.willfp.reforges.reforges
import com.google.common.collect.HashBiMap
import com.google.common.collect.ImmutableSet
import com.willfp.eco.core.config.updating.ConfigUpdater
import com.willfp.libreforge.chains.EffectChains.compile
import com.willfp.libreforge.chains.EffectChains
import com.willfp.reforges.ReforgesPlugin
@Suppress("UNUSED")
@@ -52,13 +52,13 @@ object Reforges {
@JvmStatic
fun update(plugin: ReforgesPlugin) {
for (config in plugin.reforgesYml.getSubsections("chains")) {
compile(config!!, "Chains")
EffectChains.compile(config, "Chains")
}
for (reforge in values()) {
removeReforge(reforge)
}
for (config in plugin.reforgesYml.getSubsections("reforges")) {
Reforge(config!!, plugin)
Reforge(config, plugin)
}
}