From 5daafc00935e7ee1029ba7b292667d364863e6ee Mon Sep 17 00:00:00 2001 From: Levy Ehrstein Date: Mon, 13 Dec 2021 13:20:38 +0100 Subject: [PATCH] fix: fabric downgrading not working #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 770b03fba97..b16694b5849 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" "$@"