From 2531041d7c76bd738462ee6280d61fb0691e866f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 19 Jan 2025 15:10:34 -0600 Subject: [PATCH] added missing source types --- src/engine/mbEnums.java | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/engine/mbEnums.java b/src/engine/mbEnums.java index c758c258..9f9ef53b 100644 --- a/src/engine/mbEnums.java +++ b/src/engine/mbEnums.java @@ -1029,18 +1029,23 @@ public class mbEnums { Spell; public static SourceType GetSourceType(String modName) { - SourceType returnMod; - if (modName.isEmpty()) - return SourceType.None; - try { - returnMod = SourceType.valueOf(modName.replace(",", "")); - } catch (Exception e) { - Logger.error(modName); - Logger.error(e); + SourceType returnMod; + if (modName.isEmpty()) + return SourceType.None; + + try { + returnMod = SourceType.valueOf(modName.replace(",", "")); + } catch (Exception e) { + Logger.error(modName); + Logger.error(e); + return SourceType.None; + } + return returnMod; + }catch(Exception e){ + Logger.error(" MISSING SOURCE TYPE: " + modName); return SourceType.None; } - return returnMod; } }