From 4cff161deb0bd5699f3e1e22c8d002fc2e80ed72 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 11 Jun 2016 18:42:33 -0500 Subject: [PATCH] [mc] Use new versions metadata json URL For #83 --- minecraft-server/start-minecraft.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/minecraft-server/start-minecraft.sh b/minecraft-server/start-minecraft.sh index a8bda0a4..5c54f5c9 100755 --- a/minecraft-server/start-minecraft.sh +++ b/minecraft-server/start-minecraft.sh @@ -18,19 +18,21 @@ if [ ! -e /data/eula.txt ]; then fi fi +VERSIONS_JSON=https://launchermeta.mojang.com/mc/game/version_manifest.json + echo "Checking version information." case "X$VERSION" in X|XLATEST|Xlatest) - VANILLA_VERSION=`curl -sSL https://s3.amazonaws.com/Minecraft.Download/versions/versions.json | jq -r '.latest.release'` + VANILLA_VERSION=`curl -sSL $VERSIONS_JSON | jq -r '.latest.release'` ;; XSNAPSHOT|Xsnapshot) - VANILLA_VERSION=`curl -sSL https://s3.amazonaws.com/Minecraft.Download/versions/versions.json | jq -r '.latest.snapshot'` + VANILLA_VERSION=`curl -sSL $VERSIONS_JSON | jq -r '.latest.snapshot'` ;; X[1-9]*) VANILLA_VERSION=$VERSION ;; *) - VANILLA_VERSION=`curl -sSL https://s3.amazonaws.com/Minecraft.Download/versions/versions.json | jq -r '.latest.release'` + VANILLA_VERSION=`curl -sSL $VERSIONS_JSON | jq -r '.latest.release'` ;; esac