Parcourir la source

fix(pmc): Removed hardcoded project name in update update_papermc.sh (#4225)

* fix: Removed hardcoded project name in update update_papermc.sh

Script was unable to fetch the proper builds for WaterfallMC due to it checking PaperMC instead.
Replaced the hardcoded .../paper/... project name with the already existing ${paperproject} to fix the issue

---------

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
Bibo164 il y a 3 ans
Parent
commit
71be098ec0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lgsm/modules/update_papermc.sh

+ 1 - 1
lgsm/modules/update_papermc.sh

@@ -51,7 +51,7 @@ fn_update_remotebuild() {
 		fi
 	fi
 	# Get list of paper builds for specific Minecraft: Java Edition version.
-	remotebuildresponsemcversion=$(curl -s "${apiurl}/paper/versions/${remotebuildmcversion}")
+	remotebuildresponsemcversion=$(curl -s "${apiurl}/${paperproject}/versions/${remotebuildmcversion}")
 	# Get latest paper build for specific Minecraft: Java Edition version.
 	remotebuildpaperversion=$(echo "${remotebuildresponsemcversion}" | jq -r '.builds[-1]')
 	# Get various info about the paper build.