diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 7d590213..137e8a9d 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -117,6 +117,9 @@ public class EffectsParser { String[] modEntries = modData.trim().split("\n"); + try { + + for (String modEntry : modEntries) { ArrayList modValues = new ArrayList<>(); @@ -182,8 +185,11 @@ public class EffectsParser { Logger.error("Unhandled type: " + effectModifier.type); break; } - } + } catch (Exception e) { + Logger.error(e); + } + return effectModifier; }