Fixed very mild case of stupidity

This commit is contained in:
Auxilor 2022-01-28 19:21:24 +00:00
parent 8c78c8f756
commit f4d03cbb50

View File

@ -1,6 +1,7 @@
package com.willfp.ecoenchants.enchantments.custom; package com.willfp.ecoenchants.enchantments.custom;
import com.willfp.eco.core.config.interfaces.Config; import com.willfp.eco.core.config.interfaces.Config;
import com.willfp.eco.core.config.updating.ConfigUpdater;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
@ -23,6 +24,7 @@ public class CustomEcoEnchants {
* *
* @param plugin Instance of EcoEnchants. * @param plugin Instance of EcoEnchants.
*/ */
@ConfigUpdater
public static void update(@NotNull final EcoEnchantsPlugin plugin) { public static void update(@NotNull final EcoEnchantsPlugin plugin) {
for (EcoEnchant enchant : VALUES) { for (EcoEnchant enchant : VALUES) {
EcoEnchants.removeEcoEnchant(enchant); EcoEnchants.removeEcoEnchant(enchant);