Current stage of quest must exist before dispatch, fixes #1214

This commit is contained in:
PikaMug 2020-04-17 07:46:31 -04:00
parent d74b37ff24
commit 47e6553103

View File

@ -3721,6 +3721,9 @@ public class Quester {
return; return;
} }
if (q.getCurrentStage(quest).containsObjective(objectiveType)) { if (q.getCurrentStage(quest).containsObjective(objectiveType)) {
if (this.getCurrentStage(quest) == null) {
return;
}
if (this.getCurrentStage(quest).containsObjective(objectiveType) if (this.getCurrentStage(quest).containsObjective(objectiveType)
|| !quest.getOptions().getRequireSameQuest()) { || !quest.getOptions().getRequireSameQuest()) {
fun.apply(q); fun.apply(q);