Skip to content

Commit a064031

Browse files
authored
Shift PREVIOUS to 1.18.33.02, pre-The Wild Update (#246)
1 parent c82dc81 commit a064031

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

bedrock-entry.sh

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ if [[ ${EULA^^} != TRUE ]]; then
2121
fi
2222

2323
case ${VERSION^^} in
24-
1.11)
25-
VERSION=1.11.4.2
26-
;;
2724
1.12)
2825
VERSION=1.12.0.28
2926
;;
@@ -33,28 +30,26 @@ case ${VERSION^^} in
3330
1.14)
3431
VERSION=1.14.60.5
3532
;;
36-
1.16.1)
37-
VERSION=1.16.1.02
38-
;;
3933
1.16)
4034
VERSION=1.16.20.03
4135
;;
42-
1.17|PREVIOUS)
36+
1.17)
4337
VERSION=1.17.41.01
4438
;;
4539
1.17.41)
4640
VERSION=1.17.41.01
4741
;;
42+
1.18|PREVIOUS)
43+
VERSION=1.18.33.02
44+
;;
4845
LATEST)
4946
echo "Looking up latest version..."
50-
for a in data-platform ; do
51-
for i in {1..3}; do
52-
DOWNLOAD_URL=$(restify --user-agent=itzg/minecraft-bedrock-server --headers "accept-language:*" --attribute=${a}=serverBedrockLinux ${downloadPage} 2> restify.err | jq -r '.[0].href' || echo '')
53-
if [[ ${DOWNLOAD_URL} ]]; then
54-
break 2
55-
fi
56-
sleep 1
57-
done
47+
for i in {1..3}; do
48+
DOWNLOAD_URL=$(restify --user-agent=itzg/minecraft-bedrock-server --headers "accept-language:*" --attribute=data-platform=serverBedrockLinux ${downloadPage} 2> restify.err | jq -r '.[0].href' || echo '')
49+
if [[ ${DOWNLOAD_URL} ]]; then
50+
break 2
51+
fi
52+
sleep 1
5853
done
5954
if [[ -z ${DOWNLOAD_URL} ]]; then
6055
DOWNLOAD_URL=$(curl -s https://mc-bds-helper.vercel.app/api/latest)

0 commit comments

Comments
 (0)