Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirherobrine23 authored Jul 4, 2022
1 parent ca08774 commit fe0f72b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/Root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
run: npm run build

- name: Publish
continue-on-error: true
run: npm publish --tag "${{ github.event.inputs.package_tag }}"
env:
NODE_AUTH_TOKEN: ${{ matrix.npm_registry == 'NPM' && secrets.NPM_ORG_TOKEN || secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function findUrlVersion(server: BdsCorePlatforms, Version: string|b
if (server === "bedrock") {
let bedrockData: Root["versions"]["bedrock"][0] = undefined;
if (Version === "latest"||typeof Version === "boolean") {
bedrockData = JSON.parse(await fetchBuffer("https://mcpeversions.sirherobrine23.org//bedrock/latest").then(res => res.toString("utf8")));
bedrockData = JSON.parse(await fetchBuffer("https://mcpeversions.sirherobrine23.org/bedrock/latest").then(res => res.toString("utf8")));
} else {
bedrockData = JSON.parse(await fetchBuffer(`https://mcpeversions.sirherobrine23.org/bedrock/search?version=${Version}`).then(res => res.toString("utf8")));
}
Expand Down

0 comments on commit fe0f72b

Please sign in to comment.