From e26182705e9e3efd8aedc91e66c3cf869e5e366e Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:33:51 -0400 Subject: [PATCH] Use existing stage for fail action, fixes #2286 --- core/src/main/java/me/pikamug/quests/player/BukkitQuester.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/me/pikamug/quests/player/BukkitQuester.java b/core/src/main/java/me/pikamug/quests/player/BukkitQuester.java index 35b688549..1221c8b26 100644 --- a/core/src/main/java/me/pikamug/quests/player/BukkitQuester.java +++ b/core/src/main/java/me/pikamug/quests/player/BukkitQuester.java @@ -4354,8 +4354,7 @@ public class BukkitQuester implements Quester { .replace("", 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) {