Allow bypassing validation check if we can't download the model

This commit is contained in:
Carter Penterman 2025-04-04 14:59:06 -05:00
parent 41affeae6e
commit 294564382c

@ -151,11 +151,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) {