From d024d7c700404e7bb04aa8352ec98277bbd23683 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 27 Feb 2024 23:34:07 +0200 Subject: [PATCH] Allow max value for per-entry depth --- public/scripts/world-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 9c8295027..5352fce5a 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -1542,7 +1542,7 @@ function getWorldEntry(name, data, entry) { return; } - data.entries[uid].scanDepth = !isEmpty && !isNaN(value) && value >= 0 && value < MAX_SCAN_DEPTH ? Math.floor(value) : null; + data.entries[uid].scanDepth = !isEmpty && !isNaN(value) && value >= 0 && value <= MAX_SCAN_DEPTH ? Math.floor(value) : null; setOriginalDataValue(data, uid, 'extensions.scan_depth', data.entries[uid].scanDepth); saveWorldInfo(name, data); });