autocrafting improvements

This commit is contained in:
kepler155c
2017-12-13 01:38:59 -05:00
parent 73dc16703a
commit 0ce537d4ce
14 changed files with 2864 additions and 2379 deletions

View File

@@ -24,7 +24,7 @@ repeat until not turtle.forward()
local inventoryAdapter = ChestAdapter(config.inventory)
local RESOURCE_FILE = 'usr/config/resources.db'
local RECIPES_FILE = 'usr/etc/recipes2.db'
local RECIPES_FILE = 'usr/config/recipes2.db'
local recipes = Util.readTable(RECIPES_FILE) or { }
local resources
@@ -377,7 +377,7 @@ local function findMachines()
end
local function jobMonitor()
local mon = Peripheral.getBySide('top')
local mon = Peripheral.getByType('monitor')
if mon then
mon = UI.Device({
@@ -485,7 +485,7 @@ function itemPage:eventHandler(event)
if Util.empty(filtered) then
filtered = nil
end
debug(filtered)
resources[uniqueKey(filtered)] = filtered
saveResources()