10 lines
268 B
Lua
10 lines
268 B
Lua
--[[
|
|
2019-04-17
|
|
Ideally the gate should ignore event set power if its input is connected to a wiregroup.
|
|
However I don't know how to do that right now so I'm going to leave it for later
|
|
]]
|
|
|
|
return function(gate, argv)
|
|
gate.ports[2]:setstate(toboolean(argv[1]))
|
|
end
|