mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-27 00:45:40 +01:00
Fixed parent quest loading
This commit is contained in:
parent
de2dd1a2bf
commit
ac17103be8
@ -73,11 +73,7 @@ public class Quest extends PostLoadObject {
|
|||||||
protected void whenPostLoaded(ConfigurationSection config) {
|
protected void whenPostLoaded(ConfigurationSection config) {
|
||||||
if (config.contains("parent"))
|
if (config.contains("parent"))
|
||||||
for (String parent : config.getStringList("parent"))
|
for (String parent : config.getStringList("parent"))
|
||||||
try {
|
parents.add(MMOCore.plugin.questManager.getOrThrow(parent.toLowerCase().replace(" ", "-").replace("_", "-")));
|
||||||
parents.add(MMOCore.plugin.questManager.getOrThrow(parent));
|
|
||||||
} catch (NullPointerException exception) {
|
|
||||||
MMOCore.plugin.getLogger().log(Level.WARNING, "Couldn't find quest ID '" + parent + "'");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
|
Loading…
Reference in New Issue
Block a user