make simulation non-global

This commit is contained in:
Redo0
2021-05-23 15:36:40 -05:00
parent 6c997a36fa
commit 569e79ab96
8 changed files with 52 additions and 54 deletions

View File

@@ -207,7 +207,7 @@ function Simulation.connectwire(self, wire)
end
if Wire.getgroup(wire)==nil then
Group.addwire(Group.new(Group), wire)
Group.addwire(Group.new(Group, self), wire)
end
end
@@ -221,7 +221,7 @@ function Simulation.connectport(self, port)
end
if Port.getgroup(port) == nil then
Group.addport(Group.new(Group), port)
Group.addport(Group.new(Group, self), port)
end
end