Fixed bug

This commit is contained in:
Auxilor 2021-06-28 20:18:09 +01:00
parent 91fbd5a1ef
commit 296d52e4e7

View File

@ -4,6 +4,7 @@ import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;
import com.google.common.collect.ImmutableList;
import com.willfp.eco.core.config.ConfigUpdater;
import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.AngerArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.AshArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.BarrierArtifact;
@ -586,12 +587,12 @@ public class EcoEnchants {
* Update all {@link EcoEnchant}s.
*/
@ConfigUpdater
public static void update() {
public static void update(@NotNull final EcoEnchantsPlugin plugin) {
for (EcoEnchant ecoEnchant : new HashSet<>(values())) {
ecoEnchant.update();
}
VanillaEnchantments.update();
VanillaEnchantments.update(plugin);
}
/**