From 2b0809cf8c08334592b9550dc8950285b131d991 Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 6 Sep 2022 13:18:56 -0700 Subject: [PATCH] allocated-memory is now per-server --- lib/fudo/minecraft-clj.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fudo/minecraft-clj.nix b/lib/fudo/minecraft-clj.nix index fb81b5c..7184065 100644 --- a/lib/fudo/minecraft-clj.nix +++ b/lib/fudo/minecraft-clj.nix @@ -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}";