mirror of
https://github.com/Auxilor/Reforges.git
synced 2026-01-06 15:51:32 +00:00
Updated libreforge
This commit is contained in:
@@ -44,7 +44,7 @@ allprojects {
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.willfp:eco:6.23.0'
|
||||
implementation 'com.willfp:libreforge:3.14.2'
|
||||
implementation 'com.willfp:libreforge:3.14.3'
|
||||
|
||||
compileOnly 'org.jetbrains:annotations:23.0.0'
|
||||
|
||||
|
||||
@@ -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