Skip to content

Commit

Permalink
Fix dialog history opening when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
SkytAsul committed Jun 6, 2022
1 parent a16ad1c commit cb9a71e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public boolean onClick(Player p, Inventory inv, ItemStack current, int slot, Cli
}
}else {
if (click.isRightClick()) {
if (acc.getQuestDatas(qu).hasFlowDialogs()) {
if (QuestsConfiguration.getDialogsConfig().isHistoryEnabled() && acc.getQuestDatas(qu).hasFlowDialogs()) {
Utils.playPluginSound(p, "ITEM_BOOK_PAGE_TURN", 0.5f, 1.4f);
new DialogHistoryGUI(acc, qu, () -> {
Inventories.put(p, thiz, inv);
Expand Down

0 comments on commit cb9a71e

Please sign in to comment.