fix: keep config static

This commit is contained in:
Emerson Rosen-Jones 2025-12-26 23:05:09 -05:00
parent ed4f44fc9d
commit 23c8afe8ee

View file

@ -29,10 +29,7 @@ function remove_waste(source, discard_rest)
if amounts_to_keep[item.name] ~= nil then
local excess = item.count - amounts_to_keep[item.name][1]
if excess > 0 then
amounts_to_keep[item.name][1] = 0
discard(item, excess, amounts_to_keep[item.name][2])
else
amounts_to_keep[item.name][1] = -excess
end
elseif DISCARD_REST then
discard(item, amt, DISCARD_ADDR)