mirror of
https://github.com/Auxilor/Reforges.git
synced 2025-12-30 20:39:13 +00:00
Updated libreforge
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user