Skip to content

Commit

Permalink
fix item bin by always using latest from cdragon
Browse files Browse the repository at this point in the history
  • Loading branch information
Himyu committed Feb 23, 2023
1 parent f217c84 commit 0d5761d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions StaticData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,7 @@ export default class StaticData {

const filePath = join(base, 'item.bin.json')

const versionSplit = (this.version as string).split('.')
const mainVersion = `${versionSplit[0]}.${versionSplit[1]}`
const url = `https://raw.communitydragon.org/${mainVersion}/game/global/items/items.bin.json`
const url = `https://raw.communitydragon.org/latest/game/global/items/items.bin.json`

let file = createWriteStream(filePath)
get(url, (response) => {
Expand Down

0 comments on commit 0d5761d

Please sign in to comment.