From 047ef107aef0e0b653dbc649b9b9069976502143 Mon Sep 17 00:00:00 2001 From: Duncan X Simpson Date: Sun, 20 Jun 2021 10:27:18 -0700 Subject: [PATCH] Modify start-deployFTBA to allow Fabric FTB packs (#926) Fixes #912 Co-authored-by: Duncan X Simpson --- start-deployFTBA | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/start-deployFTBA b/start-deployFTBA index 38fae975..fa4f4b00 100644 --- a/start-deployFTBA +++ b/start-deployFTBA @@ -52,12 +52,14 @@ fi isDebugging && cat version.json forgeVersion=$(jq -r '.targets|unique[] | select(.name == "forge") | .version' version.json) +fabricVersion=$(jq -r '.targets|unique[] | select(.name == "fabric") | .version' version.json) mcVersion=$(jq -r '.targets|unique[] | select(.name == "minecraft") | .version' version.json) variants=( forge-${mcVersion}-${forgeVersion}.jar forge-${mcVersion}-${forgeVersion}-universal.jar forge-${mcVersion}-${forgeVersion}-${mcVersion}-universal.jar + fabric-${mcVersion}-${fabricVersion}-server-launch.jar ) for f in ${variants[@]}; do if [ -f $f ]; then @@ -66,7 +68,7 @@ for f in ${variants[@]}; do fi done if ! [ -v SERVER ]; then - log "ERROR unable to locate the installed forge server jar" + log "ERROR unable to locate the installed FTB server jar" ls *.jar exit 2 fi