Adjust compost interval to improve efficiency and increase feeding capacity in autoCompost function

This commit is contained in:
MayaTheShy
2026-03-15 23:33:34 -04:00
parent 40141c8422
commit b1c8c261ec

View File

@@ -9,7 +9,7 @@ local SCAN_INTERVAL = 120 -- seconds between full background scans
local SMELT_INTERVAL = 3 -- seconds between furnace checks
local SMELT_RESERVE = 64 -- keep at least 1 stack of each raw material
local DEFRAG_INTERVAL = 60 -- seconds between defrag passes
local COMPOST_INTERVAL = 10 -- seconds between composter checks
local COMPOST_INTERVAL = 3 -- seconds between composter checks
local ALERT_INTERVAL = 15 -- seconds between alert re-checks
local CACHE_FILE = ".inventory_cache" -- persistent cache file
local SMELTER_MONITOR_SIDE = "top"
@@ -1854,7 +1854,7 @@ local function autoCompost()
local available = totalInStorage - COMPOST_RESERVE
if available > 0 then
local toFeed = math.min(available, dropperFree, 16)
local toFeed = math.min(available, dropperFree, 64)
local fed = 0
for _, source in ipairs(catalogue[itemName]) do
local chest = peripheral.wrap(source.chest)