change identifyMonitor and assignMonitor to local functions
This commit is contained in:
4
main.lua
4
main.lua
@@ -60,7 +60,7 @@ Config.Monitors = {}
|
|||||||
Config.Monitors.InstrumentPanelMonitor = nil
|
Config.Monitors.InstrumentPanelMonitor = nil
|
||||||
Config.Monitors.AutopilotControlMonitor = nil
|
Config.Monitors.AutopilotControlMonitor = nil
|
||||||
|
|
||||||
function identifyMonitor(monitorType)
|
local function identifyMonitor(monitorType)
|
||||||
-- Find all available monitors
|
-- Find all available monitors
|
||||||
local monitors = peripheral.find("monitor")
|
local monitors = peripheral.find("monitor")
|
||||||
|
|
||||||
@@ -101,7 +101,7 @@ function identifyMonitor(monitorType)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
function assignMonitor(monitorType, monitorData)
|
local function assignMonitor(monitorType, monitorData)
|
||||||
if monitorType == "instrument_panel" then
|
if monitorType == "instrument_panel" then
|
||||||
Config.Monitors.InstrumentPanelMonitor = monitorData
|
Config.Monitors.InstrumentPanelMonitor = monitorData
|
||||||
elseif monitorType == "autopilot_control" then
|
elseif monitorType == "autopilot_control" then
|
||||||
|
|||||||
Reference in New Issue
Block a user