Fix rangeStart condition in templateCheck function
This commit is contained in:
@@ -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'){
|
||||
|
||||
Reference in New Issue
Block a user