From c0e97f8a8ad13a2603be1974280cf27aadd618f1 Mon Sep 17 00:00:00 2001 From: PikaMug Date: Wed, 25 Sep 2019 23:58:39 -0400 Subject: [PATCH] Simplify superfluous confirmation code, part 2 --- .../main/java/me/blackvein/quests/listeners/NpcListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/main/java/me/blackvein/quests/listeners/NpcListener.java b/main/src/main/java/me/blackvein/quests/listeners/NpcListener.java index fdc8bc39f..39774d0ab 100644 --- a/main/src/main/java/me/blackvein/quests/listeners/NpcListener.java +++ b/main/src/main/java/me/blackvein/quests/listeners/NpcListener.java @@ -200,7 +200,7 @@ public class NpcListener implements Listener { player.sendMessage(msg); } if (!plugin.getSettings().canAskConfirmation()) { - plugin.getQuester(player.getUniqueId()).takeQuest(plugin.getQuest(plugin.getQuester(player.getUniqueId()).getQuestToTake()), false); + quester.takeQuest(q, false); } else { plugin.getConversationFactory().buildConversation((Conversable) player).begin(); } @@ -226,7 +226,7 @@ public class NpcListener implements Listener { player.sendMessage(msg); } if (!plugin.getSettings().canAskConfirmation()) { - plugin.getQuester(player.getUniqueId()).takeQuest(plugin.getQuest(plugin.getQuester(player.getUniqueId()).getQuestToTake()), false); + quester.takeQuest(q, false); } else { plugin.getConversationFactory().buildConversation((Conversable) player).begin(); }