Skip to content

Commit

Permalink
Fix wrong maven URL generation if forge version is not latest one
Browse files Browse the repository at this point in the history
Currently if version of forge is not latest, the code will try to fetch from wrong URL and fail with 404
  • Loading branch information
Hunter200165 authored Jan 20, 2025
1 parent 3363dcb commit 2c791b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/forge.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ func (inst *ForgeInstaller) Install(serverDir string, serverFile string) error {
}

version = sorted[0].String()
} else {
version = inst.MinecraftVersion + "-" + version
}

u := fmt.Sprintf(
Expand Down

0 comments on commit 2c791b2

Please sign in to comment.