Browse Source

attempt to parse 2 worded values

feature-config-parsing
FatBoy-DOTC 4 months ago
parent
commit
9ec97ce448
  1. 17
      src/engine/ConfigParsing/EffectsParser.java

17
src/engine/ConfigParsing/EffectsParser.java

@ -134,18 +134,21 @@ public class EffectsParser { @@ -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]);
}
}
}
}
Loading…
Cancel
Save