mirror of
https://github.com/Lawin0129/AthenaProfileGenerator.git
synced 2026-01-13 03:02:22 +01:00
Fix chapter 1 season 4 and 5 crash
This commit is contained in:
3
index.js
3
index.js
@@ -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] = {
|
athena.items[id] = {
|
||||||
"templateId": id,
|
"templateId": id,
|
||||||
"attributes": {
|
"attributes": {
|
||||||
@@ -36,6 +38,7 @@ axios.get("https://fortnite-api.com/v2/cosmetics/br").then(resp => {
|
|||||||
},
|
},
|
||||||
"quantity": 1
|
"quantity": 1
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
fs.writeFileSync("./athena.json", JSON.stringify(athena, null, 2));
|
fs.writeFileSync("./athena.json", JSON.stringify(athena, null, 2));
|
||||||
|
|||||||
Reference in New Issue
Block a user