From d8b7f74cd1efbb14c9f040b594a325a6baecf75e Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 24 Jul 2024 19:23:18 -0500 Subject: [PATCH] attempt to parse 2 worded values --- src/engine/ConfigParsing/EffectsParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index ca53a3ae..2d6aa75b 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -62,11 +62,11 @@ public class EffectsParser { try { effectData.name = compiledLines.get(1).replace(" ", "").replace("\"", "").split(" ")[1]; - int iconID = 0; + int iconID; try { iconID = Integer.parseInt(compiledLines.get(1).replace(" ", "").split(" ")[2]); } catch(Exception e){ - + iconID = 0; } effectData.icon = iconID; } catch (Exception e) {