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