Catch error for #1214

This commit is contained in:
PikaMug 2020-04-17 06:37:19 -04:00
parent 0f333341da
commit ffecc74965

View File

@ -3707,25 +3707,30 @@ public class Quester {
if (quest == null) { if (quest == null) {
return; return;
} }
if (quest.getOptions().getShareProgressLevel() == 1) { try {
List<Quester> mq = getMultiplayerQuesters(quest); if (quest.getOptions().getShareProgressLevel() == 1) {
if (mq == null) { List<Quester> mq = getMultiplayerQuesters(quest);
return; if (mq == null) {
}
for (Quester q : mq) {
if (q == null) {
return; return;
} }
if (q.getCurrentStage(quest) == null) { for (Quester q : mq) {
return; if (q == null) {
} return;
if (q.getCurrentStage(quest).containsObjective(objectiveType)) { }
if (this.getCurrentStage(quest).containsObjective(objectiveType) if (q.getCurrentStage(quest) == null) {
|| !quest.getOptions().getRequireSameQuest()) { return;
fun.apply(q); }
if (q.getCurrentStage(quest).containsObjective(objectiveType)) {
if (this.getCurrentStage(quest).containsObjective(objectiveType)
|| !quest.getOptions().getRequireSameQuest()) {
fun.apply(q);
}
} }
} }
} }
} catch (Exception e) {
plugin.getLogger().severe("Error occurred while dispatching " + objectiveType + " for " + quest.getName());
e.printStackTrace();
} }
} }