From 9ec97ce4488520f304fd68a18acbb971fc0b3f18 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 24 Jul 2024 19:03:49 -0500 Subject: [PATCH] attempt to parse 2 worded values --- src/engine/ConfigParsing/EffectsParser.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index dce62c15..bb260d82 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -134,18 +134,21 @@ public class EffectsParser { for (int i = 1; i < data.length; i++) if (!data[i].isEmpty()) { - if(i == 4){ + if (i == 5) + continue; + + if (i == 4) try { - if (!data[5].isEmpty()) { - inMod.values.add(data[i] + " " + data[5]); + String entry = ""; + for (int j = i; j < data.length; j ++){ + entry += data[j] + " "; } - } catch(Exception e){ + inMod.values.add(entry.trim()); + } catch (Exception e) { inMod.values.add(data[i]); } - } - else { + else inMod.values.add(data[i]); - } } } } \ No newline at end of file