shop monitor selection

This commit is contained in:
kepler155c@gmail.com
2019-06-02 22:44:27 -04:00
parent 4a6fa305f4
commit fcc4faefaa
2 changed files with 7 additions and 6 deletions

View File

@@ -1,8 +1,8 @@
local UI = require('ui')
local UI = require('ui')
local colors = _G.colors
local os = _G.os
local peripheral = _G.peripheral
local colors = _G.colors
local device = _G.device
local os = _G.os
--[[ Configuration Page ]]--
local wizardPage = UI.WizardPage {
@@ -64,8 +64,8 @@ function wizardPage:saveNode(node)
end
function wizardPage:isValidType(node)
local m = peripheral.getType(node.name)
return m == 'monitor' and {
local m = device[node.name]
return m and m.type == 'monitor' and {
name = 'Store Front',
value = 'shop',
category = 'display',