diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 3f24067d..7f9e9cc0 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -108,7 +108,12 @@ public class EffectsParser { while (!compiledLines.get(index + extra).contains("MODSEND")) { //data.mods.add(lines[index + extra].Replace(" ", "")); - mod.type = mbEnums.ModType.valueOf(compiledLines.get(index + extra).replace(" ", "").split(" ")[0]); + String rawValue = compiledLines.get(index + extra).replace(" ", "").split(" ")[0]; + try { + mod.type = mbEnums.ModType.valueOf(rawValue); + }catch(Exception e){ + mod.type = mbEnums.ModType.None; + } GenerateModValues(mod, compiledLines.get(index + extra).replace(" ", "").replace(" ", "").split(" ")); extra++; }