Add asset max difference setting and update related logic

This commit is contained in:
Kwaroran
2024-12-16 07:56:15 +09:00
parent 94501dbd77
commit 9bdd354f7c
4 changed files with 10 additions and 0 deletions

View File

@@ -453,6 +453,10 @@ function getClosestMatch(name:string, assetPaths:{[key:string]:{path:string, ext
closestDist = dist
}
}
console.log(closestDist, closest)
if(closestDist > DBState.db.assetMaxDifference){
return null
}
return assetPaths[closest]
}