Browse Source

parsing multi worded names

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

7
src/engine/ConfigParsing/EffectsParser.java

@ -108,7 +108,12 @@ public class EffectsParser { @@ -108,7 +108,12 @@ public class EffectsParser {
while (!compiledLines.get(index + extra).contains("MODSEND")) {
//data.mods.add(lines[index + extra].Replace(" ", ""));
mod.type = mbEnums.ModType.valueOf(compiledLines.get(index + extra).replace(" ", "").split(" ")[0]);
String rawValue = compiledLines.get(index + extra).replace(" ", "").split(" ")[0];
try {
mod.type = mbEnums.ModType.valueOf(rawValue);
}catch(Exception e){
mod.type = mbEnums.ModType.None;
}
GenerateModValues(mod, compiledLines.get(index + extra).replace(" ", "").replace(" ", "").split(" "));
extra++;
}

Loading…
Cancel
Save