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] = {
|
// Dont add anything that includes "random" in the id (Chapter 1 Season 4 and 5 crash fix)
|
||||||
"templateId": id,
|
if (!item.id.toLowerCase().includes("random")) {
|
||||||
"attributes": {
|
athena.items[id] = {
|
||||||
"max_level_bonus": 0,
|
"templateId": id,
|
||||||
"level": 1,
|
"attributes": {
|
||||||
"item_seen": true,
|
"max_level_bonus": 0,
|
||||||
"xp": 0,
|
"level": 1,
|
||||||
"variants": variants,
|
"item_seen": true,
|
||||||
"favorite": false
|
"xp": 0,
|
||||||
},
|
"variants": variants,
|
||||||
"quantity": 1
|
"favorite": false
|
||||||
|
},
|
||||||
|
"quantity": 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -58,4 +61,4 @@ function size(bytes) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (bytes / Math.pow(1024, i)).toFixed(1) + " " + sizes[i]
|
return (bytes / Math.pow(1024, i)).toFixed(1) + " " + sizes[i]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user