From 404509a998c6a0cd9834a6cfc46ec789b3723adf Mon Sep 17 00:00:00 2001 From: Vlyan Date: Mon, 4 Jan 2021 11:24:45 +0100 Subject: [PATCH] Fix for 20Q: constructCache only once --- system/scripts/actors/twenty-questions-dialog.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/scripts/actors/twenty-questions-dialog.js b/system/scripts/actors/twenty-questions-dialog.js index b0d4368..f887c8b 100644 --- a/system/scripts/actors/twenty-questions-dialog.js +++ b/system/scripts/actors/twenty-questions-dialog.js @@ -82,7 +82,9 @@ export class TwentyQuestionsDialog extends FormApplication { * @override */ async _render(force = false, options = {}) { - await this._constructCache(); + if (this.cache === null) { + await this._constructCache(); + } return super._render(force, options); }