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,6 +27,7 @@ export function templateCheck(db:Database){
} }
} }
else if(c.type === 'chat'){ else if(c.type === 'chat'){
if(c.rangeStart !== -1000){
if(c.rangeStart !== 0){ if(c.rangeStart !== 0){
startRanges.push(c.rangeStart) startRanges.push(c.rangeStart)
} }
@@ -37,6 +38,7 @@ export function templateCheck(db:Database){
reachEnd = true reachEnd = true
} }
} }
}
else if(c.type === 'description'){ else if(c.type === 'description'){
hasDescription = true hasDescription = true
} }