fix(light-server): bad loop queue used for secondary room
This commit is contained in:
parent
37c2491422
commit
56f860a282
@ -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.4'
|
local VERSION = '1.0.5'
|
||||||
|
|
||||||
local function getMainColorsOrder()
|
local function getMainColorsOrder()
|
||||||
return {
|
return {
|
||||||
@ -139,7 +139,7 @@ local function redstoneLoop()
|
|||||||
|
|
||||||
if secondaryState ~= newSecondaryState then
|
if secondaryState ~= newSecondaryState then
|
||||||
secondaryState = newSecondaryState
|
secondaryState = newSecondaryState
|
||||||
table.insert(mainLoopQueue, newSecondaryState)
|
table.insert(secondaryLoopQueue, newSecondaryState)
|
||||||
os.queueEvent('light_command_secondary', newSecondaryState)
|
os.queueEvent('light_command_secondary', newSecondaryState)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user