Skip to content

Commit

Permalink
fix webapp urls when a custom version is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Aug 22, 2024
1 parent 2a88565 commit 73aec5d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prettier": "prettier \"{,!(node_modules)/**/}*.ts\" --config .prettierrc --write"
},
"devDependencies": {
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"nodemon": "^3.1.4",
"prettier": "^3.3.3"
},
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/helpers/functions/getTexture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function getTexture(

embed
.setURL(
`https://webapp.faithfulpack.net/gallery/${texture.uses[0].edition}/${pack}/latest/all/?show=${texture.id}`,
`https://webapp.faithfulpack.net/gallery/${texture.uses[0].edition}/${pack}/${version}/all/?show=${texture.id}`,
)
.addFields({ name: "Resolution", value: `${image.width}×${image.height}` })
.setThumbnail(textureURL)
Expand Down

0 comments on commit 73aec5d

Please sign in to comment.