Skip to content

Commit 325f1c1

Browse files
authored
Merge pull request #78 from thesabinelim/create-object
Better syntax for basalt.createObject()
2 parents 7b0ad72 + cc602c0 commit 325f1c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Basalt/main.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ local getObject = function(id)
7878
return getObjects()[id]
7979
end
8080

81-
local createObject = function(objectName, id, basalt)
82-
return getObject(objectName)(id, basalt)
81+
local createObject = function(self, objectName, id)
82+
return getObject(objectName)(id, self)
8383
end
8484

8585
local bInstance = {

0 commit comments

Comments
 (0)