From 97d672d270b616a894e5c6709b086fc190967040 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Wed, 24 Apr 2024 20:03:49 +0900 Subject: [PATCH] Fix rangeStart condition in templateCheck function --- src/ts/process/templates/templateCheck.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/ts/process/templates/templateCheck.ts b/src/ts/process/templates/templateCheck.ts index 46e05f5b..6cd90992 100644 --- a/src/ts/process/templates/templateCheck.ts +++ b/src/ts/process/templates/templateCheck.ts @@ -27,14 +27,16 @@ export function templateCheck(db:Database){ } } else if(c.type === 'chat'){ - if(c.rangeStart !== 0){ - startRanges.push(c.rangeStart) - } - if(c.rangeEnd !== 'end'){ - endRanges.push(c.rangeEnd) - } - else{ - reachEnd = true + if(c.rangeStart !== -1000){ + if(c.rangeStart !== 0){ + startRanges.push(c.rangeStart) + } + if(c.rangeEnd !== 'end'){ + endRanges.push(c.rangeEnd) + } + else{ + reachEnd = true + } } } else if(c.type === 'description'){