Hybrid servers using CURSEFORGE_FILES assume mc-mods for Forge (#2740)

This commit is contained in:
Geoff Bourne 2024-03-27 08:21:07 -05:00 committed by GitHub
parent f10bb45964
commit 46fb560ed9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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