Skip to content

Commit 46fb560

Browse files
authored
Hybrid servers using CURSEFORGE_FILES assume mc-mods for Forge (#2740)
1 parent f10bb45 commit 46fb560

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

examples/ketting/docker-compose.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
services:
2+
mc:
3+
image: itzg/minecraft-server
4+
environment:
5+
EULA: true
6+
TYPE: KETTING
7+
VERSION: 1.20.1
8+
CF_API_KEY: "${CF_API_KEY}"
9+
CURSEFORGE_FILES: https://www.curseforge.com/minecraft/mc-mods/aquaculture
10+
ports:
11+
- "25565:25565"

scripts/start-setupModpack

+7
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,13 @@ function handleCurseForgeFiles() {
272272
forge|fabric|quilt)
273273
args+=(--mod-loader "$TYPE")
274274
;;
275+
*)
276+
if isFamily HYBRID; then
277+
# To disambiguate mc-mods we'll assume that hybrid servers
278+
# are blending Forge (rather than Fabric or NeoForge)
279+
args+=(--mod-loader "forge")
280+
fi
281+
;;
275282
esac
276283

277284
# shellcheck disable=SC2086

0 commit comments

Comments
 (0)