From 3238cfa0ffe78eec45b31c1acafcfbb9fdfc4b45 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 24 Jul 2024 18:54:01 -0500 Subject: [PATCH] attempt to parse 2 worded values --- src/engine/ConfigParsing/EffectsParser.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 883fc7b9..63831637 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -134,10 +134,12 @@ public class EffectsParser { for (int i = 1; i < data.length; i++) if (!data[i].isEmpty()) { - if(i == 4 && !data[5].isEmpty()){ + if(i == 4){ + if(data[5] != null && !data[5].isEmpty()){ inMod.values.add(data[i] + " " + data[5]); - }else { - inMod.values.add(data[i]); + }else { + inMod.values.add(data[i]); + } } } }