Updated launch.sh to 2.21

This commit is contained in:
r14f 2025-01-10 13:49:49 -06:00 committed by GitHub
parent b35eccf8ab
commit 7845bf0311
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,7 @@ set -x
NEOFORGE_VERSION=21.1.93
SERVER_VERSION=2.20
SERVER_VERSION=2.21
cd /data
if ! [[ "$EULA" = "false" ]]; then
@ -16,7 +16,7 @@ fi
if ! [[ -f "Server-Files-$SERVER_VERSION.zip" ]]; then
rm -fr config defaultconfigs kubejs mods packmenu Simple.zip forge*
curl -Lo "Server-Files-$SERVER_VERSION.zip" 'https://edge.forgecdn.net/files/6063/217/Server-Files-2.20.zip' || exit 9
curl -Lo "Server-Files-$SERVER_VERSION.zip" 'https://edge.forgecdn.net/files/6070/978/Server-Files-2.21.zip' || exit 9
unzip -u -o "Server-Files-$SERVER_VERSION.zip" -d /data
DIR_TEST=$(find . -type d -maxdepth 1 | tail -1 | sed 's/^.\{2\}//g')
if [[ $(find . -type d -maxdepth 1 | wc -l) -gt 1 ]]; then