feat: make retro item ids negative avatar sandbox
This commit is contained in:
parent
254957bdc7
commit
7a745a6232
1 changed files with 2 additions and 1 deletions
|
|
@ -490,13 +490,14 @@ async function LoadItems() {
|
||||||
if (RetroItems === null) {
|
if (RetroItems === null) {
|
||||||
Items = (await (await fetch('https://poly-upd-archival.pages.dev/data.json')).json())
|
Items = (await (await fetch('https://poly-upd-archival.pages.dev/data.json')).json())
|
||||||
Object.values(Items).forEach((item, index) => {
|
Object.values(Items).forEach((item, index) => {
|
||||||
item.id = Object.keys(Items)[index]
|
item.id = parseInt(Object.keys(Items)[index])
|
||||||
item.thumbnail = 'https://poly-archive.pages.dev/assets/thumbnails/' + item.id + '.png'
|
item.thumbnail = 'https://poly-archive.pages.dev/assets/thumbnails/' + item.id + '.png'
|
||||||
item.creator = {
|
item.creator = {
|
||||||
id: 1,
|
id: 1,
|
||||||
name: "Polytoria"
|
name: "Polytoria"
|
||||||
}
|
}
|
||||||
item.asset = 'https://poly-upd-archival.pages.dev/glb/' + item.id + '.glb'
|
item.asset = 'https://poly-upd-archival.pages.dev/glb/' + item.id + '.glb'
|
||||||
|
item.id = item.id*-1
|
||||||
ItemCache[item.id] = item
|
ItemCache[item.id] = item
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue