allocated-memory is now per-server

This commit is contained in:
niten 2022-09-06 13:18:56 -07:00
parent 38a4d75c82
commit 2b0809cf8c
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ in {
mem = "${toString worldOpts.allocated-memory}G";
memFlags = [ "-Xms${mem}" "-Xmx${mem}" ];
flags = commonFlags ++ memFlags
++ (optionals (cfg.allocated-memory >= 12) highMemFlags);
++ (optionals (worldOpts.allocated-memory >= 12) highMemFlags);
flagStr = concatStringsSep " " flags;
in "${pkgs.papermc}/bin/minecraft-server ${flagStr}";