fix: keep config static
This commit is contained in:
parent
ed4f44fc9d
commit
23c8afe8ee
1 changed files with 0 additions and 3 deletions
|
|
@ -29,10 +29,7 @@ function remove_waste(source, discard_rest)
|
||||||
if amounts_to_keep[item.name] ~= nil then
|
if amounts_to_keep[item.name] ~= nil then
|
||||||
local excess = item.count - amounts_to_keep[item.name][1]
|
local excess = item.count - amounts_to_keep[item.name][1]
|
||||||
if excess > 0 then
|
if excess > 0 then
|
||||||
amounts_to_keep[item.name][1] = 0
|
|
||||||
discard(item, excess, amounts_to_keep[item.name][2])
|
discard(item, excess, amounts_to_keep[item.name][2])
|
||||||
else
|
|
||||||
amounts_to_keep[item.name][1] = -excess
|
|
||||||
end
|
end
|
||||||
elseif DISCARD_REST then
|
elseif DISCARD_REST then
|
||||||
discard(item, amt, DISCARD_ADDR)
|
discard(item, amt, DISCARD_ADDR)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue