From 57249727dedd23c96bdb788169e5a5c55ae6d9e6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 12 Aug 2024 09:27:19 -0400 Subject: [PATCH] More effectmod parser work. --- src/engine/ConfigParsing/EffectsParser.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; }