|
|
|
@ -1029,18 +1029,23 @@ public class mbEnums {
@@ -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; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|