allocated-memory is now per-server
This commit is contained in:
parent
38a4d75c82
commit
2b0809cf8c
|
@ -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}";
|
||||
|
||||
|
|
Loading…
Reference in New Issue