mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-04 17:39:37 +00:00
For FTBA support extra mods with Modrinth/CurseForge (#3092)
This commit is contained in:
parent
34187adca3
commit
d4af9b1ae5
1 changed files with 27 additions and 1 deletions
|
@ -88,6 +88,32 @@ if ! [ -v SERVER ]; then
|
|||
exit 2
|
||||
fi
|
||||
|
||||
export FAMILY=FORGE
|
||||
# Remap the TYPE and FAMILY based on discovered server jar
|
||||
if [[ $SERVER = run.sh ]]; then
|
||||
if grep -q neoforge "$SERVER"; then
|
||||
export FAMILY=FORGE
|
||||
export TYPE=NEOFORGE
|
||||
elif grep -q forge "$SERVER"; then
|
||||
export FAMILY=FORGE
|
||||
export TYPE=FORGE
|
||||
elif grep -q fabric run.s; then
|
||||
export FAMILY=FABRIC
|
||||
export TYPE=FABRIC
|
||||
else
|
||||
log "ERROR: unrecognized loader type in $SERVER"
|
||||
cat "$SERVER"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
elif [[ $SERVER = forge* ]]; then
|
||||
export FAMILY=FORGE
|
||||
export TYPE=FORGE
|
||||
elif [[ $SERVER = fabric* ]]; then
|
||||
export FAMILY=FABRIC
|
||||
export TYPE=FABRIC
|
||||
else
|
||||
log "ERROR: unrecognized loader type from $SERVER"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec "${SCRIPTS:-/}start-setupWorld" "$@"
|
||||
|
|
Loading…
Reference in a new issue