Fixed a quest parent loading issue

This commit is contained in:
Indyuce 2020-04-28 19:49:28 +02:00
parent f09d1fe7c3
commit 27273a974d

View File

@ -74,7 +74,7 @@ public class Quest extends PostLoadObject {
if (config.contains("parent"))
for (String parent : config.getStringList("parent"))
try {
parents.add(MMOCore.plugin.questManager.get(parent));
parents.add(MMOCore.plugin.questManager.getOrThrow(parent));
} catch (NullPointerException exception) {
MMOCore.plugin.getLogger().log(Level.WARNING, "Couldn't find quest ID '" + parent + "'");
}