From bd084cc261ccdb6a08501a6e174f340845dfe235 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Tue, 8 Jan 2019 18:28:34 -0600 Subject: [PATCH] mc: adjust WORLD destination directory when using FTB type For #278 --- minecraft-server/start-finalSetup01World | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/minecraft-server/start-finalSetup01World b/minecraft-server/start-finalSetup01World index c1caa1f8..201f6685 100755 --- a/minecraft-server/start-finalSetup01World +++ b/minecraft-server/start-finalSetup01World @@ -1,6 +1,10 @@ #!/bin/bash -worldDest=/data/$LEVEL +if [ $TYPE = "FEED-THE-BEAST" ]; then + worldDest=$FTB_BASE_DIR/$LEVEL +else + worldDest=/data/$LEVEL +fi # If no world exists and a URL for a world is supplied, download it and unpack if [[ "$WORLD" ]] && [ ! -d "$worldDest" ]; then