Skip to content

Commit 2c791b2

Browse files
authored
Fix wrong maven URL generation if forge version is not latest one
Currently if version of forge is not latest, the code will try to fetch from wrong URL and fail with 404
1 parent 3363dcb commit 2c791b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/forge.go

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ func (inst *ForgeInstaller) Install(serverDir string, serverFile string) error {
4747
}
4848

4949
version = sorted[0].String()
50+
} else {
51+
version = inst.MinecraftVersion + "-" + version
5052
}
5153

5254
u := fmt.Sprintf(

0 commit comments

Comments
 (0)