milo storage filter + crafting fixes

This commit is contained in:
kepler155c
2018-10-28 15:24:12 -04:00
parent 9d45460a3b
commit 1c70085450
8 changed files with 177 additions and 168 deletions

View File

@@ -9,10 +9,10 @@ local RedstoneTask = {
}
function RedstoneTask:cycle(context)
for _,v in pairs(context.config.remoteDefaults) do
for v in context.storage:filterActive({ 'mtype', 'machine' }) do
if v.redstone then
local ri = device[v.redstone.integrator]
if not ri or not v.adapter or not v.adapter.online then
if not ri or not v.adapter then
debug(v.redstone)
else
local function conditionsSatisfied()