mc: adjust WORLD destination directory when using FTB type

For #278
This commit is contained in:
Geoff Bourne 2019-01-08 18:28:34 -06:00
parent 895b7d74f5
commit bd084cc261

View file

@ -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