Add asset max difference setting and update related logic
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user