Browse Source

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
pull/4225/head
Bibo164 2 years ago
parent
commit
6da763ebf1
No known key found for this signature in database GPG Key ID: 3AC17D2D24767B9A
  1. 2
      lgsm/modules/update_papermc.sh

2
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.

Loading…
Cancel
Save