diff --git a/sim/simulation.lua b/sim/simulation.lua index 4bdeae2..bdc3723 100644 --- a/sim/simulation.lua +++ b/sim/simulation.lua @@ -187,22 +187,22 @@ function Simulation.connectwire(self, wire) for x = bounds[1]+1, bounds[4]-1, 2 do for z = bounds[3]+1, bounds[6]-1, 2 do - self:connectwireat(wire, x, bounds[2], z) - self:connectwireat(wire, x, bounds[5], z) + Simulation.connectwireat(self, wire, x, bounds[2], z) + Simulation.connectwireat(self, wire, x, bounds[5], z) end end for y = bounds[2]+1, bounds[5]-1, 2 do for z = bounds[3]+1, bounds[6]-1, 2 do - self:connectwireat(wire, bounds[1], y, z) - self:connectwireat(wire, bounds[4], y, z) + Simulation.connectwireat(self, wire, bounds[1], y, z) + Simulation.connectwireat(self, wire, bounds[4], y, z) end end for x = bounds[1]+1, bounds[4]-1, 2 do for y = bounds[2]+1, bounds[5]-1, 2 do - self:connectwireat(wire, x, y, bounds[3]) - self:connectwireat(wire, x, y, bounds[6]) + Simulation.connectwireat(self, wire, x, y, bounds[3]) + Simulation.connectwireat(self, wire, x, y, bounds[6]) end end