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:
27
index.js
27
index.js
@@ -24,17 +24,20 @@ axios.get("https://fortnite-api.com/v2/cosmetics/br").then(resp => {
|
||||
})
|
||||
}
|
||||
|
||||
athena.items[id] = {
|
||||
"templateId": id,
|
||||
"attributes": {
|
||||
"max_level_bonus": 0,
|
||||
"level": 1,
|
||||
"item_seen": true,
|
||||
"xp": 0,
|
||||
"variants": variants,
|
||||
"favorite": false
|
||||
},
|
||||
"quantity": 1
|
||||
// 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": {
|
||||
"max_level_bonus": 0,
|
||||
"level": 1,
|
||||
"item_seen": true,
|
||||
"xp": 0,
|
||||
"variants": variants,
|
||||
"favorite": false
|
||||
},
|
||||
"quantity": 1
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -58,4 +61,4 @@ function size(bytes) {
|
||||
}
|
||||
|
||||
return (bytes / Math.pow(1024, i)).toFixed(1) + " " + sizes[i]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user