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

@@ -10,7 +10,7 @@ FFI.cdef[[
};
]]
function Gate.new(self, objref, definition)
function Gate.new(objref, definition)
local o = {
objref = objref,
definition = definition,
@@ -18,8 +18,6 @@ function Gate.new(self, objref, definition)
in_queue = false,
logic = definition.logic,
}
setmetatable(o, self)
self.__index = self
return o
end