Browse Source

attempt to parse 2 worded values

feature-config-parsing
FatBoy-DOTC 4 months ago
parent
commit
3238cfa0ff
  1. 4
      src/engine/ConfigParsing/EffectsParser.java

4
src/engine/ConfigParsing/EffectsParser.java

@ -134,7 +134,8 @@ public class EffectsParser { @@ -134,7 +134,8 @@ 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]);
@ -142,3 +143,4 @@ public class EffectsParser { @@ -142,3 +143,4 @@ public class EffectsParser {
}
}
}
}
Loading…
Cancel
Save