fix(light-server): remove old code that break the new implementation
This commit is contained in:
parent
2c224f29c6
commit
aaf40e2e77
@ -11,7 +11,7 @@ local MAIN_OUTPUT_SIDE = 'left'
|
|||||||
local SECONDARY_INPUT_SIDE = 'back'
|
local SECONDARY_INPUT_SIDE = 'back'
|
||||||
local SECONDARY_OUTPUT_SIDE = 'front'
|
local SECONDARY_OUTPUT_SIDE = 'front'
|
||||||
|
|
||||||
local VERSION = '1.0.2'
|
local VERSION = '1.0.3'
|
||||||
|
|
||||||
local function getMainColorsOrder()
|
local function getMainColorsOrder()
|
||||||
return {
|
return {
|
||||||
@ -135,13 +135,11 @@ local function redstoneLoop()
|
|||||||
|
|
||||||
if mainState ~= newMainState then
|
if mainState ~= newMainState then
|
||||||
mainState = newMainState
|
mainState = newMainState
|
||||||
table.insert(mainLoopQueue, { typeOfRoom = 'main', lightIsOn = newMainState })
|
|
||||||
os.queueEvent('light_command_main', newMainState)
|
os.queueEvent('light_command_main', newMainState)
|
||||||
end
|
end
|
||||||
|
|
||||||
if secondaryState ~= newSecondaryState then
|
if secondaryState ~= newSecondaryState then
|
||||||
secondaryState = newSecondaryState
|
secondaryState = newSecondaryState
|
||||||
table.insert(mainLoopQueue, { typeOfRoom = 'secondary', lightIsOn = newSecondaryState })
|
|
||||||
os.queueEvent('light_command_secondary', newSecondaryState)
|
os.queueEvent('light_command_secondary', newSecondaryState)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user