From 5e55581008a12db508609f1eb218f2cfe3f2e573 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 6 Oct 2024 21:20:04 -0500 Subject: [PATCH] Only if MODRINTH_PROJECTS is set --- scripts/start-setupModpack | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/scripts/start-setupModpack b/scripts/start-setupModpack index 1114ef491a..4bd80234f3 100755 --- a/scripts/start-setupModpack +++ b/scripts/start-setupModpack @@ -244,21 +244,23 @@ function handleModrinthProjects() { log " Use MODRINTH_DOWNLOAD_DEPENDENCIES=optional instead" fi - if isFamily HYBRID; then - loader=forge - elif isFamily VANILLA; then - loader=datapack - else - loader="${TYPE,,}" + if [[ $MODRINTH_PROJECTS ]]; then + if isFamily HYBRID; then + loader=forge + elif isFamily VANILLA; then + loader=datapack + else + loader="${TYPE,,}" + fi + mc-image-helper modrinth \ + --output-directory=/data \ + --world-directory="${LEVEL:-world}" \ + --projects="${MODRINTH_PROJECTS}" \ + --game-version="${VERSION}" \ + --loader="$loader" \ + --download-dependencies="$MODRINTH_DOWNLOAD_DEPENDENCIES" \ + --allowed-version-type="$MODRINTH_ALLOWED_VERSION_TYPE" fi - mc-image-helper modrinth \ - --output-directory=/data \ - --world-directory="${LEVEL:-world}" \ - --projects="${MODRINTH_PROJECTS}" \ - --game-version="${VERSION}" \ - --loader="$loader" \ - --download-dependencies="$MODRINTH_DOWNLOAD_DEPENDENCIES" \ - --allowed-version-type="$MODRINTH_ALLOWED_VERSION_TYPE" } function handleCurseForgeFiles() {