made this work

This commit is contained in:
virtualWinter 2023-07-22 14:39:15 +00:00
parent 2894af04dc
commit 1f19e8d024

View File

@ -14,7 +14,7 @@ jarpath=$workdir/$minecraftversion/$minecraftversion
echo "Downloading unmapped vanilla jar..." echo "Downloading unmapped vanilla jar..."
if [ ! -f "$jarpath.jar" ]; then if [ ! -f "$jarpath.jar" ]; then
mkdir -p "$workdir/$minecraftversion" mkdir -p "$workdir/$minecraftversion"
curl -s -o "$jarpath.jar" "https://s3.amazonaws.com/Minecraft.Download/versions/$minecraftversion/minecraft_server.$minecraftversion.jar" curl -s -o "$jarpath.jar" "https://launcher.mojang.com/v1/objects/5fafba3f58c40dc51b5c3ca72a98f62dfdae1db7/server.jar"
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
echo "Failed to download the vanilla server jar. Check connectivity or try again later." echo "Failed to download the vanilla server jar. Check connectivity or try again later."
exit 1 exit 1