Adjust custom string for legacy reasons, fixes #1587

This commit is contained in:
PikaMug 2021-01-27 18:20:07 -05:00
parent c8441f389d
commit a9e27768c4

View File

@ -67,7 +67,12 @@ public enum ObjectiveType {
if (name == null) { if (name == null) {
return null; return null;
} }
return NAME_MAP.get(name.toLowerCase()); // Adjust custom string for legacy reasons
String n = name.toLowerCase();
if (n.startsWith("custom")) {
n = "custom";
}
return NAME_MAP.get(n);
} }
public static ObjectiveType fromId(final int id) { public static ObjectiveType fromId(final int id) {