Hybrid servers using CURSEFORGE_FILES assume mc-mods for Forge

This commit is contained in:
Geoff Bourne 2024-03-26 22:25:51 -05:00
parent f10bb45964
commit 5a4f46f80b
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,11 @@
services:
mc:
image: itzg/minecraft-server
environment:
EULA: true
TYPE: KETTING
VERSION: 1.20.1
CF_API_KEY: "${CF_API_KEY}"
CURSEFORGE_FILES: https://www.curseforge.com/minecraft/mc-mods/aquaculture
ports:
- "25565:25565"

View File

@ -272,6 +272,13 @@ function handleCurseForgeFiles() {
forge|fabric|quilt)
args+=(--mod-loader "$TYPE")
;;
*)
if isFamily HYBRID; then
# To disambiguate mc-mods we'll assume that hybrid servers
# are blending Forge (rather than Fabric or NeoForge)
args+=(--mod-loader "forge")
fi
;;
esac
# shellcheck disable=SC2086