make net in port lists arrays

This commit is contained in:
Redo0
2021-05-25 17:18:57 -05:00
parent d25893566e
commit 730ca3fd64
5 changed files with 17 additions and 18 deletions

View File

@@ -28,8 +28,8 @@ function Gate.addport(self, port)
Port.setgate(port, self)
end
function Gate.getportstate(self, index)
return self.ports[index].group.state
function Gate.getportstate(gate, index)
return gate.ports[index].group.state
end
function Gate.setportstate(self, index, state)