mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45:12 +01:00
Fixed bug
This commit is contained in:
parent
91fbd5a1ef
commit
296d52e4e7
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user