diff --git a/src/main/resources/assets/warpdrive/lua.ComputerCraft/common/warpdriveCommons b/src/main/resources/assets/warpdrive/lua.ComputerCraft/common/warpdriveCommons index a5a2200a..46b2c819 100644 --- a/src/main/resources/assets/warpdrive/lua.ComputerCraft/common/warpdriveCommons +++ b/src/main/resources/assets/warpdrive/lua.ComputerCraft/common/warpdriveCommons @@ -37,25 +37,6 @@ local styles = { success = { front = colors.white , back = colors.lime }, } -local local_env = {-- mostly for OC - data = data, - data_shouldUpdateName = data_shouldUpdateName, - data_name = data_name, - data_handlers = data_handlers, - device_handlers = device_handlers, - event_handlers = event_handlers, - monitors = monitors, - monitor_textScale = monitor_textScale, - monitor_colorFront = monitor_colorFront, - monitor_colorBackground = monitor_colorBackground, - page_handlers = page_handlers, - page_endText = page_endText, - page_callbackDisplay = page_callbackDisplay, - page_callbackKey = page_callbackKey, - event_refreshPeriod_s = event_refreshPeriod_s, - ship = ship, - styles = styles } - ----------- Terminal & monitor support local function setMonitorColorFrontBack(colorFront, colorBackground) @@ -1067,7 +1048,7 @@ local function run() local refresh = true local ignoreNextChar = false - function selectPage(index) + local function selectPage(index) if page_handlers[index] ~= nil then page_callbackDisplay = page_handlers[index].display page_callbackKey = page_handlers[index].key diff --git a/src/main/resources/assets/warpdrive/lua.OpenComputers/common/usr/lib/warpdriveCommons.lua b/src/main/resources/assets/warpdrive/lua.OpenComputers/common/usr/lib/warpdriveCommons.lua index 8f5630eb..9578fbd1 100644 --- a/src/main/resources/assets/warpdrive/lua.OpenComputers/common/usr/lib/warpdriveCommons.lua +++ b/src/main/resources/assets/warpdrive/lua.OpenComputers/common/usr/lib/warpdriveCommons.lua @@ -65,25 +65,6 @@ local styles = { success = { front = colors.white , back = colors.lime }, } -local local_env = {-- mostly for OC - data = data, - data_shouldUpdateName = data_shouldUpdateName, - data_name = data_name, - data_handlers = data_handlers, - device_handlers = device_handlers, - event_handlers = event_handlers, - monitors = monitors, - monitor_textScale = monitor_textScale, - monitor_colorFront = monitor_colorFront, - monitor_colorBackground = monitor_colorBackground, - page_handlers = page_handlers, - page_endText = page_endText, - page_callbackDisplay = page_callbackDisplay, - page_callbackKey = page_callbackKey, - event_refreshPeriod_s = event_refreshPeriod_s, - ship = ship, - styles = styles } - ----------- Terminal & monitor support local function setMonitorColorFrontBack(colorFront, colorBackground) @@ -1037,7 +1018,7 @@ local function run() local refresh = true local ignoreNextChar = false - function selectPage(index) + local function selectPage(index) if page_handlers[index] ~= nil then page_callbackDisplay = page_handlers[index].display page_callbackKey = page_handlers[index].key @@ -1227,4 +1208,4 @@ w = { close = close, } -return w, local_env \ No newline at end of file +return w \ No newline at end of file