From 3c43c747b0a282793a4db46ed0e064f5e71adc1a Mon Sep 17 00:00:00 2001 From: templeofshadow Date: Thu, 25 Jun 2026 14:42:06 -0500 Subject: [PATCH] change identifyMonitor and assignMonitor to local functions --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 8039e42..be508e7 100644 --- a/main.lua +++ b/main.lua @@ -60,7 +60,7 @@ Config.Monitors = {} Config.Monitors.InstrumentPanelMonitor = nil Config.Monitors.AutopilotControlMonitor = nil -function identifyMonitor(monitorType) +local function identifyMonitor(monitorType) -- Find all available monitors local monitors = peripheral.find("monitor") @@ -101,7 +101,7 @@ function identifyMonitor(monitorType) } end -function assignMonitor(monitorType, monitorData) +local function assignMonitor(monitorType, monitorData) if monitorType == "instrument_panel" then Config.Monitors.InstrumentPanelMonitor = monitorData elseif monitorType == "autopilot_control" then