This commit is contained in:
osmarks 2018-08-15 17:35:43 +01:00
parent d014160af5
commit ac604b7db0
1 changed files with 1 additions and 1 deletions

2
IO.lua
View File

@ -35,7 +35,7 @@ while true do
for slot, item in pairs(stacks_stored) do
local ii = w.get_internal_identifier(item)
local stored = items_stored[ii] or 0
local stored = (items_stored[ii] or {count = 0}).count
local wanted = conf.items[ii] or 0
if (get_num_stacks(stored) * 64) >= wanted then -- if item is not in want list or we have too many, send it back to storage
local result = w.unwrap(w.query_by_type("storage", {