Allow max value for per-entry depth

This commit is contained in:
Cohee 2024-02-27 23:34:07 +02:00
parent 0fcb176408
commit d024d7c700
1 changed files with 1 additions and 1 deletions

View File

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