From 633f5837dcaeb0abe47b1b61fca3a06cbf9f6f4d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 24 Jul 2024 18:55:20 -0500 Subject: [PATCH] attempt to parse 2 worded values --- src/engine/ConfigParsing/EffectsParser.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 63831637..fade05e6 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -135,9 +135,13 @@ public class EffectsParser { for (int i = 1; i < data.length; i++) if (!data[i].isEmpty()) { if(i == 4){ - if(data[5] != null && !data[5].isEmpty()){ - inMod.values.add(data[i] + " " + data[5]); - }else { + try { + if (!data[5].isEmpty()) { + inMod.values.add(data[i] + " " + data[5]); + } else { + inMod.values.add(data[i]); + } + } catch(Exception e){ inMod.values.add(data[i]); } }