From b81b4f0e0ad4e3b7c1dbcf6b2d6e2fa44984345c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 24 Jul 2024 19:23:04 -0500 Subject: [PATCH] attempt to parse 2 worded values --- 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 432cd287..ca53a3ae 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -62,7 +62,13 @@ public class EffectsParser { try { effectData.name = compiledLines.get(1).replace(" ", "").replace("\"", "").split(" ")[1]; - effectData.icon = Integer.parseInt(compiledLines.get(1).replace(" ", "").split(" ")[2]); + int iconID = 0; + try { + iconID = Integer.parseInt(compiledLines.get(1).replace(" ", "").split(" ")[2]); + } catch(Exception e){ + + } + effectData.icon = iconID; } catch (Exception e) { Logger.error(e); }