mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-25 20:25:45 +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) {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user