diff --git a/Plugin/src/main/java/com/willfp/ecoenchants/config/configs/EnchantmentConfig.java b/Plugin/src/main/java/com/willfp/ecoenchants/config/configs/EnchantmentConfig.java index 529b7310..d33e80e8 100644 --- a/Plugin/src/main/java/com/willfp/ecoenchants/config/configs/EnchantmentConfig.java +++ b/Plugin/src/main/java/com/willfp/ecoenchants/config/configs/EnchantmentConfig.java @@ -93,8 +93,10 @@ public class EnchantmentConfig extends EnchantmentYamlConfig { Set targets = new HashSet<>(); targetNames.forEach((s -> { - if(EnchantmentTarget.getByName(s) == null) + if(EnchantmentTarget.getByName(s) == null) { Logger.error(s + " is an invalid target!"); + return; + } targets.add(EnchantmentTarget.getByName(s)); }));