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

@@ -29,7 +29,7 @@ FFI.cdef[[
};
]]
function Port.new(self, type, direction, position, causeupdate)
function Port.new(type, direction, position, causeupdate)
local o = {
type = type,
direction = direction,
@@ -39,8 +39,6 @@ function Port.new(self, type, direction, position, causeupdate)
gate = nil,
group = nil,
}
setmetatable(o, self)
self.__index = self
return o
end