Use openjdk17 headless instead of openjdk 16 (minecraft requires jdk 17)
This commit is contained in:
parent
46718fcc69
commit
10168a091e
1 changed files with 2 additions and 2 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue