1.12 fixes
This commit is contained in:
@@ -549,6 +549,7 @@ local function jobMonitor()
|
|||||||
parent = mon,
|
parent = mon,
|
||||||
grid = UI.Grid {
|
grid = UI.Grid {
|
||||||
sortColumn = 'displayName',
|
sortColumn = 'displayName',
|
||||||
|
backgroundFocusColor = colors.black,
|
||||||
columns = {
|
columns = {
|
||||||
{ heading = 'Qty', key = 'count', width = 6 },
|
{ heading = 'Qty', key = 'count', width = 6 },
|
||||||
{ heading = 'Crafting', key = 'displayName', width = mon.width / 2 - 10 },
|
{ heading = 'Crafting', key = 'displayName', width = mon.width / 2 - 10 },
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ local function craftItem(item, qty)
|
|||||||
|
|
||||||
if safePlaceBlock(CHEST) then
|
if safePlaceBlock(CHEST) then
|
||||||
|
|
||||||
|
os.sleep(.2) -- needed for minecraft 1.12
|
||||||
Util.print('Crafting %d %s', (qty or 1), item)
|
Util.print('Crafting %d %s', (qty or 1), item)
|
||||||
success, msg = turtle.craftItem(item, qty or 1, {
|
success, msg = turtle.craftItem(item, qty or 1, {
|
||||||
side = 'top',
|
side = 'top',
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
|
_G.requireInjector(_ENV)
|
||||||
local Home = require('turtle.home')
|
local Home = require('turtle.home')
|
||||||
turtle.run(Home.set)
|
turtle.run(Home.set)
|
||||||
|
|||||||
Reference in New Issue
Block a user