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_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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user