Browse Source

attempt to parse 2 worded values

feature-config-parsing
FatBoy-DOTC 5 months ago
parent
commit
b81b4f0e0a
  1. 8
      src/engine/ConfigParsing/EffectsParser.java

8
src/engine/ConfigParsing/EffectsParser.java

@ -62,7 +62,13 @@ public class EffectsParser {
try { try {
effectData.name = compiledLines.get(1).replace(" ", "").replace("\"", "").split(" ")[1]; effectData.name = compiledLines.get(1).replace(" ", "").replace("\"", "").split(" ")[1];
effectData.icon = Integer.parseInt(compiledLines.get(1).replace(" ", "").split(" ")[2]); int iconID = 0;
try {
iconID = Integer.parseInt(compiledLines.get(1).replace(" ", "").split(" ")[2]);
} catch(Exception e){
}
effectData.icon = iconID;
} catch (Exception e) { } catch (Exception e) {
Logger.error(e); Logger.error(e);
} }

Loading…
Cancel
Save