From aaf40e2e77f7542e2917225b26c48e4684fc6668 Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Tue, 28 May 2024 01:46:18 +0200 Subject: [PATCH] fix(light-server): remove old code that break the new implementation --- light-server.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/light-server.lua b/light-server.lua index 85e38ad..469ea83 100644 --- a/light-server.lua +++ b/light-server.lua @@ -11,7 +11,7 @@ local MAIN_OUTPUT_SIDE = 'left' local SECONDARY_INPUT_SIDE = 'back' local SECONDARY_OUTPUT_SIDE = 'front' -local VERSION = '1.0.2' +local VERSION = '1.0.3' local function getMainColorsOrder() return { @@ -135,13 +135,11 @@ local function redstoneLoop() if mainState ~= newMainState then mainState = newMainState - table.insert(mainLoopQueue, { typeOfRoom = 'main', lightIsOn = newMainState }) os.queueEvent('light_command_main', newMainState) end if secondaryState ~= newSecondaryState then secondaryState = newSecondaryState - table.insert(mainLoopQueue, { typeOfRoom = 'secondary', lightIsOn = newSecondaryState }) os.queueEvent('light_command_secondary', newSecondaryState) end