Use openjdk17 headless instead of openjdk 16 (minecraft requires jdk 17)

This commit is contained in:
Charlotte 🦝 Delenk 2022-02-19 15:41:35 +01:00
parent 46718fcc69
commit 10168a091e
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, bash, jre }:
{ lib, stdenv, fetchurl, bash, openjdk17_headless }:
let
mcVersion = "1.18.1";
buildNum = "204";
@ -19,7 +19,7 @@ stdenv.mkDerivation {
buildPhase = ''
cat > minecraft-server << EOF
#!${bash}/bin/sh
exec ${jre}/bin/java \$@ -jar $out/share/papermc/papermc.jar nogui
exec ${openjdk17_headless}/bin/java \$@ -jar $out/share/papermc/papermc.jar nogui
'';
installPhase = ''