From 4cbe9fc236620ba33371308706043dbc4a8eddac Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 19 Jan 2025 15:16:54 -0600 Subject: [PATCH] effect parsing --- src/engine/wpak/EffectsParser.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/engine/wpak/EffectsParser.java b/src/engine/wpak/EffectsParser.java index 211239a5..1a5b565f 100644 --- a/src/engine/wpak/EffectsParser.java +++ b/src/engine/wpak/EffectsParser.java @@ -50,8 +50,12 @@ public class EffectsParser { Matcher matcher = EFFECT_REGEX.matcher(fileContents); while (matcher.find()) { - Effect effect = parseEffectEntry(matcher.group()); - WpakPowerManager.effect_data.put(effect.effect_id, effect); + try { + Effect effect = parseEffectEntry(matcher.group()); + WpakPowerManager.effect_data.put(effect.effect_id, effect); + }catch(Exception e){ + Logger.error("EFFECT PARSE FAILED: " + e); + } } }