Use existing stage for fail action, fixes #2286

This commit is contained in:
PikaMug 2024-08-29 10:33:51 -04:00
parent 18eb72a822
commit e26182705e

View File

@ -4354,8 +4354,7 @@ public class BukkitQuester implements Quester {
.replace("<quest>", quest.getName()));
}
if (stage.getFailAction() != null) {
plugin.getServer().getScheduler().runTask(plugin, () ->
getCurrentStage(quest).getFailAction().fire(this, quest));
plugin.getServer().getScheduler().runTask(plugin, () -> stage.getFailAction().fire(this, quest));
}
hardQuit(quest);
} else if (giveReason) {