From 483866ad0b614c85dbfab3d51407f92639172763 Mon Sep 17 00:00:00 2001 From: Sense101 <67970865+Sense101@users.noreply.github.com> Date: Fri, 7 May 2021 15:01:59 +0100 Subject: [PATCH] validation only checks every 100 ticks to improve performance --- src/js/game/hud/parts/puzzle_editor_review.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/game/hud/parts/puzzle_editor_review.js b/src/js/game/hud/parts/puzzle_editor_review.js index 899871b9..b358dc6d 100644 --- a/src/js/game/hud/parts/puzzle_editor_review.js +++ b/src/js/game/hud/parts/puzzle_editor_review.js @@ -91,7 +91,7 @@ export class HUDPuzzleEditorReview extends BaseHUDPart { //if we reached maximum ticks and the puzzle still isn't completed const validationError = this.validatePuzzle(); - if (validationError) { + if (simulatedTicks == maxTicks && validationError) { this.root.hud.parts.dialogs.showWarning(T.puzzleMenu.validation.title, validationError); return; }