Fix chapter 1 season 4 and 5 crash

This commit is contained in:
Lawin0129
2022-02-13 00:48:36 +00:00
committed by GitHub
parent d8614dfd04
commit fd7c8b657c

View File

@@ -24,6 +24,8 @@ axios.get("https://fortnite-api.com/v2/cosmetics/br").then(resp => {
})
}
// Dont add anything that includes "random" in the id (Chapter 1 Season 4 and 5 crash fix)
if (!item.id.toLowerCase().includes("random")) {
athena.items[id] = {
"templateId": id,
"attributes": {
@@ -36,6 +38,7 @@ axios.get("https://fortnite-api.com/v2/cosmetics/br").then(resp => {
},
"quantity": 1
}
}
})
fs.writeFileSync("./athena.json", JSON.stringify(athena, null, 2));