All damage type lookups go through method

This commit is contained in:
2024-04-01 12:35:44 -04:00
parent 14ee83e147
commit 5ed497dd69
7 changed files with 7 additions and 7 deletions
@@ -36,7 +36,7 @@ public class StaminaEffectModifier extends AbstractEffectModifier {
super(rs);
String damageTypeDB = rs.getString("type");
try {
this.damageType = Enum.DamageType.valueOf(damageTypeDB);
this.damageType = Enum.DamageType.GetDamageType(damageTypeDB);
} catch (IllegalArgumentException e) {
Logger.error("DamageType could not be loaded from database. " + "UUID = " + this.UUID
+ " value received = '" + damageTypeDB.toUpperCase() + '\'', e);