Fixed bug #772 about trigger at the end of a quest to launch a new one.

This commit is contained in:
Ka0rX 2023-04-02 18:29:14 +01:00
parent 3bc0ba515b
commit 2f17d56c40

View File

@ -47,8 +47,6 @@ public class QuestProgress {
objective++;
objectiveProgress.close();
// apply triggers
objectiveProgress.getObjective().getTriggers().forEach(trigger -> trigger.schedule(getPlayer()));
// end quest
if (objective >= quest.getObjectives().size())
@ -57,6 +55,10 @@ public class QuestProgress {
objectiveProgress = nextObjective().newProgress(this);
player.getQuestData().updateBossBar();
// apply triggers at the end so the quest is ended when a trigger quest start is launched.
objectiveProgress.getObjective().getTriggers().forEach(trigger -> trigger.schedule(getPlayer()));
}
public String getFormattedLore() {