File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -318,8 +318,8 @@ function Update-FileLinkInServerFiles {
318318 $idPart2 = Remove-LeadingZero - text $idPart2
319319 # CurseForge replaces whitespace in filenames with + in their CDN urls
320320 $sanitizedClientZipName = $CLIENT_ZIP_NAME.Replace (" " , " +" )
321- $curseForgeCdnUrl = " https://media .forgecdn.net/files/$idPart1 /$idPart2 /$sanitizedClientZipName .zip"
322- $content = (Get-Content - Path $SERVER_SETUP_CONFIG_PATH ) -replace " https://media .forgecdn.net/files/\d+/\d+/.*.zip" , $curseForgeCdnUrl
321+ $curseForgeCdnUrl = " https://edge .forgecdn.net/files/$idPart1 /$idPart2 /$sanitizedClientZipName .zip"
322+ $content = (Get-Content - Path $SERVER_SETUP_CONFIG_PATH ) -replace " https://edge .forgecdn.net/files/\d+/\d+/.*.zip" , $curseForgeCdnUrl
323323 [System.IO.File ]::WriteAllLines(($SERVER_SETUP_CONFIG_PATH | Resolve-Path ), $content )
324324
325325 if ($ENABLE_SERVER_FILE_MODULE ) {
You can’t perform that action at this time.
0 commit comments