make gates use cdata for critical logic

This commit is contained in:
Redo
2022-11-04 13:10:10 -06:00
parent 07b3decc45
commit cdbf3ed089
10 changed files with 232 additions and 62 deletions

View File

@@ -62,5 +62,5 @@ function Port.gettype(port)
end
function Port.getstate(port)
return Port.getgate(port).port_states[port.idx]
return Port.getgate(port).c.ports[port.idx].state
end