Skip to content

Commit

Permalink
Only if MODRINTH_PROJECTS is set
Browse files Browse the repository at this point in the history
  • Loading branch information
itzg committed Oct 7, 2024
1 parent af44ff0 commit 5e55581
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions scripts/start-setupModpack
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 5e55581

Please sign in to comment.