9
0
mirror of https://github.com/Auxilor/Reforges.git synced 2025-12-30 20:39:13 +00:00

Updated libreforge

This commit is contained in:
Auxilor
2022-02-05 14:16:47 +00:00
parent 49dfaaa893
commit 97e1dbefed
3 changed files with 6 additions and 5 deletions

View File

@@ -60,10 +60,6 @@ public class ReforgesPlugin extends LibReforgePlugin {
@Override
public void handleEnableAdditional() {
Items.registerArgParser(new ReforgeArgParser());
for (Config config : reforgesYml.getSubsections("chains")) {
EffectChains.compile(config, "Chains");
}
}
@Override

View File

@@ -5,6 +5,7 @@ import com.google.common.collect.HashBiMap;
import com.google.common.collect.ImmutableSet;
import com.willfp.eco.core.config.interfaces.Config;
import com.willfp.eco.core.config.updating.ConfigUpdater;
import com.willfp.libreforge.chains.EffectChains;
import com.willfp.reforges.ReforgesPlugin;
import lombok.experimental.UtilityClass;
import org.jetbrains.annotations.NotNull;
@@ -55,6 +56,10 @@ public class Reforges {
*/
@ConfigUpdater
public static void update(@NotNull final ReforgesPlugin plugin) {
for (Config config : plugin.getReforgesYml().getSubsections("chains")) {
EffectChains.compile(config, "Chains");
}
for (Reforge reforge : values()) {
removeReforge(reforge);
}