|
|
@ -108,7 +108,12 @@ public class EffectsParser { |
|
|
|
|
|
|
|
|
|
|
|
while (!compiledLines.get(index + extra).contains("MODSEND")) { |
|
|
|
while (!compiledLines.get(index + extra).contains("MODSEND")) { |
|
|
|
//data.mods.add(lines[index + extra].Replace(" ", ""));
|
|
|
|
//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(" ")); |
|
|
|
GenerateModValues(mod, compiledLines.get(index + extra).replace(" ", "").replace(" ", "").split(" ")); |
|
|
|
extra++; |
|
|
|
extra++; |
|
|
|
} |
|
|
|
} |
|
|
|