Browse Source

added missing source types

feature-config-usage
FatBoy-DOTC 2 weeks ago
parent
commit
2531041d7c
  1. 23
      src/engine/mbEnums.java

23
src/engine/mbEnums.java

@ -1029,18 +1029,23 @@ public class mbEnums {
Spell; Spell;
public static SourceType GetSourceType(String modName) { public static SourceType GetSourceType(String modName) {
SourceType returnMod;
if (modName.isEmpty())
return SourceType.None;
try { try {
returnMod = SourceType.valueOf(modName.replace(",", "")); SourceType returnMod;
} catch (Exception e) { if (modName.isEmpty())
Logger.error(modName); return SourceType.None;
Logger.error(e);
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 SourceType.None;
} }
return returnMod;
} }
} }

Loading…
Cancel
Save