Fix a thingy
This commit is contained in:
parent
03ada09821
commit
12beea339d
2
IO.lua
2
IO.lua
@ -19,7 +19,7 @@ while true do
|
||||
local items_stored = w.collate_stacks(stacks_stored)
|
||||
|
||||
for item_name, quantity_desired in pairs(conf.items) do
|
||||
local quantity_stocked = items_stored[item_name] or 0
|
||||
local quantity_stocked = items_stored[item_name].count or 0
|
||||
if quantity_desired > quantity_stocked then -- if we have fewer items than are desired, extract some from store
|
||||
local request = w.string_to_item(item_name)
|
||||
request.type = "extract"
|
||||
|
Loading…
Reference in New Issue
Block a user