Fix rangeStart condition in templateCheck function

This commit is contained in:
kwaroran
2024-04-24 20:03:49 +09:00
parent 430c752da2
commit 97d672d270

View File

@@ -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'){