regressions
This commit is contained in:
@@ -10,7 +10,7 @@ local JSON = require('json')
|
|||||||
local blockDB = TableDB()
|
local blockDB = TableDB()
|
||||||
|
|
||||||
function blockDB:load()
|
function blockDB:load()
|
||||||
local blocks = JSON.decodeFromFile('usr/etc/blocks.json')
|
local blocks = JSON.decodeFromFile('usr/etc/names/minecraft.json')
|
||||||
|
|
||||||
if not blocks then
|
if not blocks then
|
||||||
error('Unable to read blocks.json')
|
error('Unable to read blocks.json')
|
||||||
|
|||||||
@@ -443,7 +443,7 @@ function TurtleBuilder:inAirDropoff()
|
|||||||
turtle._goto(pt)
|
turtle._goto(pt)
|
||||||
os.sleep(.1) -- random computer is not connected error
|
os.sleep(.1) -- random computer is not connected error
|
||||||
|
|
||||||
local chestAdapter = Adapter.wrap({ direction = 'down', wrapSide = 'top' })
|
local chestAdapter = Adapter.wrap({ direction = 'down', side = 'top' })
|
||||||
|
|
||||||
if not chestAdapter then
|
if not chestAdapter then
|
||||||
self:log('Chests above is not valid')
|
self:log('Chests above is not valid')
|
||||||
@@ -505,7 +505,7 @@ function TurtleBuilder:inAirResupply()
|
|||||||
turtle._goto(pt)
|
turtle._goto(pt)
|
||||||
os.sleep(.1) -- random computer is not connected error
|
os.sleep(.1) -- random computer is not connected error
|
||||||
|
|
||||||
local chestAdapter = Adapter.wrap({ direction = 'down', wrapSide = 'top' })
|
local chestAdapter = Adapter.wrap({ direction = 'down', side = 'top' })
|
||||||
|
|
||||||
if not chestAdapter then
|
if not chestAdapter then
|
||||||
Util.print('not valid')
|
Util.print('not valid')
|
||||||
|
|||||||
@@ -16,13 +16,17 @@ local turtle = _G.turtle
|
|||||||
|
|
||||||
local config = {
|
local config = {
|
||||||
computerFacing = 'north',
|
computerFacing = 'north',
|
||||||
|
inventorySide = 'front',
|
||||||
monitor = 'type/monitor',
|
monitor = 'type/monitor',
|
||||||
}
|
}
|
||||||
Config.load('crafter', config)
|
Config.load('crafter', config)
|
||||||
|
|
||||||
repeat until not turtle.forward()
|
repeat until not turtle.forward()
|
||||||
|
|
||||||
local inventoryAdapter = InventoryAdapter.wrap({ side = 'front', facing = config.computerFacing })
|
local inventoryAdapter = InventoryAdapter.wrap({
|
||||||
|
side = config.inventorySide,
|
||||||
|
facing = config.computerFacing
|
||||||
|
})
|
||||||
if not inventoryAdapter then
|
if not inventoryAdapter then
|
||||||
error('Invalid inventory configuration')
|
error('Invalid inventory configuration')
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -742,7 +742,7 @@ if #args < 1 then
|
|||||||
error('supply file name')
|
error('supply file name')
|
||||||
end
|
end
|
||||||
|
|
||||||
Builder.itemAdapter = Adapter.wrap()
|
Builder.itemAdapter = Adapter.wrap({ side = 'bottom', direction = 'up' })
|
||||||
if not Builder.itemAdapter then
|
if not Builder.itemAdapter then
|
||||||
error('A chest or ME interface must be below turtle')
|
error('A chest or ME interface must be below turtle')
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1237,7 +1237,7 @@ function craftPage:eventHandler(event)
|
|||||||
if event.type == 'cancel' then
|
if event.type == 'cancel' then
|
||||||
UI:setPreviousPage()
|
UI:setPreviousPage()
|
||||||
|
|
||||||
elseif event.type == 'enable_view' and event.view == self.wizard.pages.resources then
|
elseif event.type == 'enable_view' and event.next then
|
||||||
local items = listItems()
|
local items = listItems()
|
||||||
local count = tonumber(self.wizard.pages.quantity.count.value)
|
local count = tonumber(self.wizard.pages.quantity.count.value)
|
||||||
local recipe = Craft.findRecipe(self.item)
|
local recipe = Craft.findRecipe(self.item)
|
||||||
@@ -1246,6 +1246,7 @@ function craftPage:eventHandler(event)
|
|||||||
v.displayName = itemDB:getName(v)
|
v.displayName = itemDB:getName(v)
|
||||||
end
|
end
|
||||||
self.wizard.pages.resources.grid:setValues(ingredients)
|
self.wizard.pages.resources.grid:setValues(ingredients)
|
||||||
|
return false
|
||||||
|
|
||||||
elseif event.type == 'accept' then
|
elseif event.type == 'accept' then
|
||||||
local key = uniqueKey(self.item)
|
local key = uniqueKey(self.item)
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ local clipboard
|
|||||||
|
|
||||||
-- do we need a clipboard shim
|
-- do we need a clipboard shim
|
||||||
if not multishell or not _G.kernel then -- is this OpusOS ?
|
if not multishell or not _G.kernel then -- is this OpusOS ?
|
||||||
debug('nope')
|
|
||||||
if _G.clipboard then -- has it been installed already
|
if _G.clipboard then -- has it been installed already
|
||||||
clipboard = _G.clipboard
|
clipboard = _G.clipboard
|
||||||
else
|
else
|
||||||
@@ -1032,7 +1031,6 @@ local __actions = {
|
|||||||
if clipboard then
|
if clipboard then
|
||||||
clipboard.setData(text)
|
clipboard.setData(text)
|
||||||
else
|
else
|
||||||
debug(text)
|
|
||||||
os.queueEvent('clipboard_copy', text)
|
os.queueEvent('clipboard_copy', text)
|
||||||
end
|
end
|
||||||
setStatus('shift-^v to paste')
|
setStatus('shift-^v to paste')
|
||||||
|
|||||||
Reference in New Issue
Block a user