From 3cb5d4eecc904f324b65af11b33ee13b3277a705 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Mon, 2 Mar 2020 14:50:19 -0600 Subject: [PATCH] Updated to use attribute data-bi-prtid to find latest version Fixes #31 --- bedrock-entry.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bedrock-entry.sh b/bedrock-entry.sh index be0b30a..704aa00 100755 --- a/bedrock-entry.sh +++ b/bedrock-entry.sh @@ -23,10 +23,10 @@ case ${VERSION} in VERSION=1.13.0.34 ;; 1.14) - VERSION=1.14.1.4 + VERSION=1.14.30.2 ;; *) - DOWNLOAD_URL=$(restify --attribute=data-platform=serverBedrockLinux https://www.minecraft.net/en-us/download/server/bedrock/ | jq -r '.[0].href') + DOWNLOAD_URL=$(restify --attribute=data-bi-prtid=serverBedrockLinux https://www.minecraft.net/en-us/download/server/bedrock/ | jq -r '.[0].href') if [[ ${DOWNLOAD_URL} =~ http.*/.*-(.*)\.zip ]]; then VERSION=${BASH_REMATCH[1]} else