stop setting metatables on objects
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user