Browse Source

attempt to parse 2 worded values

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

4
src/engine/ConfigParsing/EffectsParser.java

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

Loading…
Cancel
Save