Better syntax

This commit is contained in:
Sabine Lim
2023-05-16 01:48:07 +10:00
parent 7b0ad7294f
commit cc602c0749

View File

@@ -78,8 +78,8 @@ local getObject = function(id)
return getObjects()[id]
end
local createObject = function(objectName, id, basalt)
return getObject(objectName)(id, basalt)
local createObject = function(self, objectName, id)
return getObject(objectName)(id, self)
end
local bInstance = {