Skip to content

Commit 67a6112

Browse files
authored
feat: make _G addressible at initialisation
2 parents ac8a1be + 8937b89 commit 67a6112

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

class_loader.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ do
155155
}
156156

157157
baseEnvironment.__index = baseEnvironment
158+
setmetatable(baseEnvironment, {__index = _G})
158159

159160
function ClassLoader.GetPackage(packageName)
160161
assert(isstring(packageName), "The package location must be provided as a string")

0 commit comments

Comments
 (0)