Merge pull request 'Allow bypassing validation check if we can't download the model' () from disable-verification into master

Reviewed-on: 
Reviewed-by: itzaname <itzaname@noreply@itzana.me>
This commit is contained in:
itzaname 2025-04-04 20:10:23 +00:00
commit 7e3b03ff07

@ -178,11 +178,22 @@ function capitalize(str) {
}
async function validateMapAsset(assetId, game) {
const modelDomRes = await axios.get("https://assetdelivery.roblox.com/v1/asset/", {
params: { id: assetId },
responseEncoding: "binary",
responseType: "arraybuffer"
});
let modelDomRes;
try {
modelDomRes = await axios.get("https://assetdelivery.roblox.com/v1/asset/", {
params: { id: assetId },
responseEncoding: "binary",
responseType: "arraybuffer"
});
}
catch {
// Roblox
return {
valid: true,
displayName: "",
creator: ""
};
}
const model = RobloxFile.ReadFromBuffer(modelDomRes.data);
if (!model) {