mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-29 14:16:09 +01:00
Adjust custom string for legacy reasons, fixes #1587
This commit is contained in:
parent
c8441f389d
commit
a9e27768c4
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user