Compare commits
2 Commits
e27d6e5b70
...
8d5fbdf18e
Author | SHA1 | Date | |
---|---|---|---|
8d5fbdf18e | |||
84034001c9 |
@ -141,7 +141,13 @@ function capitalize(str) {
|
||||
}
|
||||
|
||||
async function validateMapAsset(assetId, game) {
|
||||
const model = await RobloxModel.ReadFromAssetId(assetId);
|
||||
const modelDomRes = await axios.get("https://assetdelivery.roblox.com/v1/asset/", {
|
||||
params: { id: assetId },
|
||||
responseEncoding: "binary",
|
||||
responseType: "arraybuffer"
|
||||
});
|
||||
|
||||
const model = RobloxModel.ReadFromBuffer(modelDomRes.data);
|
||||
if (!model) {
|
||||
// For whatever reason we couldn't parse the model, so we'll just skip doing validation
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user