From 8bbc466421447a745af9b94c6080d93c74c2d644 Mon Sep 17 00:00:00 2001 From: osmarks Date: Wed, 15 Aug 2018 17:28:56 +0100 Subject: [PATCH] Make IO dump excess items --- IO.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IO.lua b/IO.lua index 09f962e..81e48b3 100644 --- a/IO.lua +++ b/IO.lua @@ -31,7 +31,7 @@ while true do for slot, item in pairs(stacks_stored) do local ii = w.get_internal_identifier(item) - if not conf.items[ii] then -- if item is not in want list, send it back to storage + if not conf.items[ii] or stacks_stored[ii] > (64 + conf_items[ii]) then -- if item is not in want list, send it back to storage local result = w.unwrap(w.query_by_type("storage", { type = "insert", from_inventory = conf.chest,