Add support for health check for pre-1.3 versions (#3758)

This commit is contained in:
k4rnaj1k
2025-11-12 23:24:01 +02:00
committed by GitHub
parent 6cdc1a4b78
commit 11daad5dd3
2 changed files with 7 additions and 1 deletions

View File

@@ -393,6 +393,12 @@ if versionLessThan 'b1.8'; then
echo "
DISABLE_HEALTHCHECK=true
" > "$mcHealthEnvPath"
elif versionLessThan 1.3; then
echo "
MC_HEALTH_EXTRA_ARGS=(
--use-old-server-list-ping
)
" > "$mcHealthEnvPath"
elif versionLessThan 1.7; then
echo "
MC_HEALTH_EXTRA_ARGS=(