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 {
try { try {
effectData.name = compiledLines.get(1).replace(" ", "").replace("\"", "").split(" ")[1]; effectData.name = compiledLines.get(1).replace(" ", "").replace("\"", "").split(" ")[1];
int iconID = 0; int iconID;
try { try {
iconID = Integer.parseInt(compiledLines.get(1).replace(" ", "").split(" ")[2]); iconID = Integer.parseInt(compiledLines.get(1).replace(" ", "").split(" ")[2]);
} catch(Exception e){ } catch(Exception e){
iconID = 0;
} }
effectData.icon = iconID; effectData.icon = iconID;
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save