diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index ff391a27..c01d077e 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -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 { 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);