From 562b7afbd6ab9dc904aa4792ce48d65e393f60c5 Mon Sep 17 00:00:00 2001 From: Carter Penterman Date: Mon, 29 Apr 2024 17:51:32 -0500 Subject: [PATCH] Fix rbxm-parser dependency --- common.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common.js b/common.js index 059021d..631d3b3 100644 --- a/common.js +++ b/common.js @@ -1,5 +1,5 @@ const axios = require("axios").default; -const { RobloxModel } = require("rbxm-parser"); +const { RobloxFile } = require("rbxm-parser"); // https://create.roblox.com/docs/reference/engine/enums/AssetType const AssetType = { @@ -147,7 +147,7 @@ async function validateMapAsset(assetId, game) { responseType: "arraybuffer" }); - const model = RobloxModel.ReadFromBuffer(modelDomRes.data); + const model = RobloxFile.ReadFromBuffer(modelDomRes.data); if (!model) { // For whatever reason we couldn't parse the model, so we'll just skip doing validation return { diff --git a/package.json b/package.json index 6e942c0..1f9e676 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "discord.js": "^14.14.1", "noblox.js": "^4.15.1", "node-csv": "^0.1.2", - "rbxm-parser": "^1.0.6", + "rbxm-parser": "^1.1.0", "sugar-date": "^2.0.6" }, "devDependencies": {