stop setting metatables on objects

This commit is contained in:
Redo0
2021-05-25 17:28:54 -05:00
parent 4cf2231a01
commit e92cc50186
7 changed files with 11 additions and 21 deletions

View File

@@ -149,7 +149,7 @@ while 1 do
local max = vectotable(data[i+4])
local bounds = {min[1], min[2], min[3], max[1], max[2], max[3]}
local wire = Wire.new(Wire, tonumber(data[i+1]), tonumber(data[i+2]), bounds)
local wire = Wire.new(tonumber(data[i+1]), tonumber(data[i+2]), bounds)
Simulation.addwire(sim, wire)
i = i + 4
@@ -202,7 +202,7 @@ while 1 do
if not portd.direction then print(line) end
end
local definition = GateDefinition.new(GateDefinition, objref, name, desc, init, logic, input, global, ports)
local definition = GateDefinition.new(objref, name, desc, init, logic, input, global, ports)
Simulation.addgatedefinition(sim, definition)
i = i + 8 + numports*5