Skip to content

Commit

Permalink
Fix an issue caused by url change of resource
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoloveFeng authored Jun 16, 2022
1 parent 3ab3f9f commit b178cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/userscript/src/sites/minecraft-net.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async function getContent(html: Document, ctx: Context) {

// Get the server URL if it exists.
const serverUrls = ans.match(
/(https:\/\/launcher.mojang.com\/.+\/server.jar)/
/(https:\/\/piston-data.mojang.com\/.+\/server.jar)/
)
let serverUrl = ''
if (serverUrls) {
Expand Down

0 comments on commit b178cbc

Please sign in to comment.