From 58765ec29655c27e00f88878c54ba544f2878e54 Mon Sep 17 00:00:00 2001 From: Emerson Rosen-Jones Date: Thu, 13 Nov 2025 15:40:02 -0500 Subject: [PATCH] farm_control.lua: fixed bug in check_levels for empty containers --- farm_control.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/farm_control.lua b/farm_control.lua index e199bb4..9da6893 100644 --- a/farm_control.lua +++ b/farm_control.lua @@ -39,7 +39,8 @@ function check_levels (levels, src) end local needs_farming = {} for item, data in pairs(levels) do - if amounts[item] ~= nil and amounts[item] < data[1] then + if amounts[item] == nil then amounts[item] = 0 end + if amounts[item] < data[1] then if data[2] ~= nil then table.insert(needs_farming, data[2]) else