mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Make PhaseType.smartValueOf() able to parse both formats of phase name.
This commit is contained in:
@@ -66,7 +66,7 @@ public enum PhaseType {
|
||||
}
|
||||
final String valToCompate = value.trim();
|
||||
for (final PhaseType v : PhaseType.values()) {
|
||||
if (v.nameForScripts.compareToIgnoreCase(valToCompate) == 0) {
|
||||
if (v.nameForScripts.equalsIgnoreCase(valToCompate)|| v.name().equalsIgnoreCase(valToCompate)) {
|
||||
return v;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user