Browse Source

Uppercase for source type

combat-2
MagicBot 8 months ago
parent
commit
f682f9a5ae
  1. 2
      src/engine/Enum.java
  2. 2
      src/engine/db/handlers/dbPowerHandler.java

2
src/engine/Enum.java

@ -945,7 +945,7 @@ public class Enum { @@ -945,7 +945,7 @@ public class Enum {
return EffectSourceType.None;
try {
returnMod = EffectSourceType.valueOf(modName.replace(",", ""));
returnMod = EffectSourceType.valueOf(modName.replace(",", "").toUpperCase());
} catch (Exception e) {
Logger.error(e);
return EffectSourceType.None;

2
src/engine/db/handlers/dbPowerHandler.java

@ -40,7 +40,7 @@ public class dbPowerHandler extends dbHandlerBase { @@ -40,7 +40,7 @@ public class dbPowerHandler extends dbHandlerBase {
IDString = rs.getString("IDString");
int token = DbManager.hasher.SBStringHash(IDString);
source = rs.getString("source").replace("-", "").toUpperCase().trim();
source = rs.getString("source").replace("-", "").trim();
Enum.EffectSourceType effectSourceType = Enum.EffectSourceType.GetEffectSourceType(source);
if (EffectsBase.effectSourceTypeMap.containsKey(token) == false)

Loading…
Cancel
Save