Compare commits
2 Commits
85228b134b
...
432a9feff9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
432a9feff9 | ||
|
|
ee76a61240 |
1367
inventoryClient.lua
1367
inventoryClient.lua
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -958,8 +958,9 @@ local function buildSmelterPage()
|
||||
turtleStatus = UI.Window {
|
||||
x = -14, y = 0, width = 14, height = 1,
|
||||
draw = function(self)
|
||||
local turtleOk = ctx.craftTurtleName
|
||||
and peripheral.isPresent(ctx.craftTurtleName)
|
||||
local turtleOk = ctx.craftTurtleOk
|
||||
or (ctx.craftTurtleName
|
||||
and peripheral.isPresent(ctx.craftTurtleName))
|
||||
local label = turtleOk and " Turtle OK " or " No Turtle "
|
||||
local bg = turtleOk and colors.lime or colors.red
|
||||
local fg = turtleOk and colors.black or colors.white
|
||||
@@ -1140,8 +1141,9 @@ local function buildSmelterPage()
|
||||
local recipeIdx = event.selected.idx
|
||||
local recipe = cfg.CRAFTABLE[recipeIdx]
|
||||
if recipe then
|
||||
local turtleOk = ctx.craftTurtleName
|
||||
and peripheral.isPresent(ctx.craftTurtleName)
|
||||
local turtleOk = ctx.craftTurtleOk
|
||||
or (ctx.craftTurtleName
|
||||
and peripheral.isPresent(ctx.craftTurtleName))
|
||||
if not turtleOk then
|
||||
self.notification:error("No crafting turtle!")
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user