Package is specified in worldOpts

This commit is contained in:
niten 2023-07-10 11:56:45 -07:00
parent c4ec7d8e04
commit 977ae77a76
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ in {
++ (optionals (worldOpts.allocated-memory >= 12) highMemFlags);
flagStr = concatStringsSep " " flags;
in pkgs.writeShellScript "mc-start-${sanitizedName}.sh"
"${cfg.package}/bin/minecraft-server ${flagStr}";
"${worldOpts.package}/bin/minecraft-server ${flagStr}";
in nameValuePair serverName {
enable = worldOpts.enable;