remove some error prints

This commit is contained in:
Redo0
2021-06-05 17:05:22 -05:00
parent 7157957d71
commit bdcf2b384a
4 changed files with 9 additions and 6 deletions

View File

@@ -18,13 +18,13 @@ function Gate.addport(gate, port)
Port.setgate(port, gate)
end
-- Logic Critical
function Gate.getportstate(gate, index)
return gate.port_nets[index].state
end
-- Logic Critical
function Gate.setportstate(gate, index, state)
if type(state)~="number" then error("invalid state type - must be number (gate "..gate.objref..")") end
local port = gate.ports[index]
if state ~= port.state then
local group = port.group