11 lines
228 B
Lua
11 lines
228 B
Lua
|
|
return function(gate)
|
|
if #gate.queueBits~=0 then
|
|
local bit = table.remove(gate.queueBits, #gate.queueBits)
|
|
Gate.setportstate(gate, 1, bit)
|
|
Gate.queue(gate, 1)
|
|
else
|
|
Gate.setportstate(gate, 1, false)
|
|
end
|
|
end
|