mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-10-01 10:00:29 +00:00
Read the Java release from $JAVA_HOME/release so the first mc-image-helper call gets the same options (#4292)
This commit is contained in:
@@ -36,7 +36,7 @@ if isTrue "$PREFER_IPV6"; then
|
||||
export JVM_DD_OPTS
|
||||
fi
|
||||
|
||||
if (( $(mc-image-helper java-release) >= 17 )); then
|
||||
if (( $(getJavaRelease) >= 17 )); then
|
||||
MC_IMAGE_HELPER_OPTS+=" --enable-native-access=ALL-UNNAMED"
|
||||
export MC_IMAGE_HELPER_OPTS
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user