Browse Source

attempt to parse 2 worded values

feature-config-parsing
FatBoy-DOTC 4 months ago
parent
commit
633f5837dc
  1. 10
      src/engine/ConfigParsing/EffectsParser.java

10
src/engine/ConfigParsing/EffectsParser.java

@ -135,9 +135,13 @@ public class EffectsParser { @@ -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]);
}
}

Loading…
Cancel
Save