From 4e44f33db9f9d69f08d11844d5ecb3214cf96da1 Mon Sep 17 00:00:00 2001 From: Levy Ehrstein Date: Mon, 13 Dec 2021 20:50:20 +0100 Subject: [PATCH] fix: fabric downgrading not working (#1197, #1192) See #1192 for an in-depth explanation of the problem. Reported-by: Erik "Coding-Kiwi" --- scripts/start-deployFabric | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/start-deployFabric b/scripts/start-deployFabric index 770b03fb..b16694b5 100755 --- a/scripts/start-deployFabric +++ b/scripts/start-deployFabric @@ -24,7 +24,7 @@ fi export SERVER=fabric-server-${VANILLA_VERSION}-${FABRIC_INSTALLER_VERSION}.jar -if [[ ! -e ${SERVER} ]]; then +if [ ! \( -e ${SERVER} -a -e "server-${VANILLA_VERSION}.jar" \) ]; then if [[ -z $FABRIC_INSTALLER && -z $FABRIC_INSTALLER_URL ]]; then FABRIC_INSTALLER="fabric-installer-${FABRIC_INSTALLER_VERSION}.jar" @@ -70,8 +70,12 @@ if [[ ! -e ${SERVER} ]]; then exit 10 fi + mv server.jar "server-${VANILLA_VERSION}.jar" mv fabric-server-launch.jar "${SERVER}" fi +# Specify which server jar to run +echo "serverJar=server-${VANILLA_VERSION}.jar" > fabric-server-launcher.properties + export FAMILY=FABRIC exec "${SCRIPTS:-/}start-setupWorld" "$@"