Browse Source

Debugging

feature-config-parsing2
MagicBot 5 months ago
parent
commit
ebc0b7a89e
  1. 7
      src/engine/ConfigParsing/EffectsParser.java

7
src/engine/ConfigParsing/EffectsParser.java

@ -10,6 +10,7 @@ package engine.ConfigParsing; @@ -10,6 +10,7 @@ package engine.ConfigParsing;
import engine.ConfigParsing.EffectEntry.EffectEntry;
import engine.gameManager.ConfigManager;
import org.pmw.tinylog.Logger;
import java.io.IOException;
import java.nio.file.Files;
@ -72,8 +73,12 @@ public class EffectsParser { @@ -72,8 +73,12 @@ public class EffectsParser {
effectEntry.id = effectDescription.get(0);
effectEntry.name = effectDescription.get(1);
effectEntry.icon = Integer.parseInt(effectDescription.get(2));
try {
effectEntry.icon = Integer.parseInt(effectDescription.get(2));
} catch (Exception e) {
Logger.error(e);
}
// Parse source entries
matcher = SOURCE_REGEX.matcher(effectData);

Loading…
Cancel
Save