Simplify superfluous confirmation code, part 2

This commit is contained in:
PikaMug 2019-09-25 23:58:39 -04:00
parent b1ced220d4
commit c0e97f8a8a

View File

@ -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();
}