mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Allow max value for per-entry depth
This commit is contained in:
		| @@ -1542,7 +1542,7 @@ function getWorldEntry(name, data, entry) { | |||||||
|             return; |             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); |         setOriginalDataValue(data, uid, 'extensions.scan_depth', data.entries[uid].scanDepth); | ||||||
|         saveWorldInfo(name, data); |         saveWorldInfo(name, data); | ||||||
|     }); |     }); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user