From ebc0b7a89eb69f300abb75376f98e8bc600670f9 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 8 Aug 2024 13:02:01 -0400 Subject: [PATCH] Debugging --- src/engine/ConfigParsing/EffectsParser.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);