From 91def1176dd5609a18ac293ea43e37c937def558 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Fri, 5 May 2017 20:18:31 -0500 Subject: [PATCH] [mc] Run FTB server in its directory to support legacy For #144 --- minecraft-server/start-minecraft.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/minecraft-server/start-minecraft.sh b/minecraft-server/start-minecraft.sh index 4a1b94c5..6258893a 100755 --- a/minecraft-server/start-minecraft.sh +++ b/minecraft-server/start-minecraft.sh @@ -197,8 +197,10 @@ function installFTB { mkdir -p ${ftb_dir} unzip -o ${srv_modpack} -d ${ftb_dir} cp -f /data/eula.txt ${ftb_dir}/eula.txt - FTB_SERVER_START=${ftb_dir}/ServerStart.sh + cd ${ftb_dir} + FTB_SERVER_START=ServerStart.sh chmod a+x ${FTB_SERVER_START} + sed -i "s/-jar/-Dfml.queryResult=confirm -jar/" ${FTB_SERVER_START} } function installVanilla {