mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
See #1192 for an in-depth explanation of the problem. Reported-by: Erik "Coding-Kiwi"
This commit is contained in:
parent
58c085527f
commit
4e44f33db9
@ -24,7 +24,7 @@ fi
|
|||||||
|
|
||||||
export SERVER=fabric-server-${VANILLA_VERSION}-${FABRIC_INSTALLER_VERSION}.jar
|
export SERVER=fabric-server-${VANILLA_VERSION}-${FABRIC_INSTALLER_VERSION}.jar
|
||||||
|
|
||||||
if [[ ! -e ${SERVER} ]]; then
|
if [ ! \( -e ${SERVER} -a -e "server-${VANILLA_VERSION}.jar" \) ]; then
|
||||||
|
|
||||||
if [[ -z $FABRIC_INSTALLER && -z $FABRIC_INSTALLER_URL ]]; then
|
if [[ -z $FABRIC_INSTALLER && -z $FABRIC_INSTALLER_URL ]]; then
|
||||||
FABRIC_INSTALLER="fabric-installer-${FABRIC_INSTALLER_VERSION}.jar"
|
FABRIC_INSTALLER="fabric-installer-${FABRIC_INSTALLER_VERSION}.jar"
|
||||||
@ -70,8 +70,12 @@ if [[ ! -e ${SERVER} ]]; then
|
|||||||
exit 10
|
exit 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mv server.jar "server-${VANILLA_VERSION}.jar"
|
||||||
mv fabric-server-launch.jar "${SERVER}"
|
mv fabric-server-launch.jar "${SERVER}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Specify which server jar to run
|
||||||
|
echo "serverJar=server-${VANILLA_VERSION}.jar" > fabric-server-launcher.properties
|
||||||
|
|
||||||
export FAMILY=FABRIC
|
export FAMILY=FABRIC
|
||||||
exec "${SCRIPTS:-/}start-setupWorld" "$@"
|
exec "${SCRIPTS:-/}start-setupWorld" "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user