mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-29 10:43:43 +01:00
Monkey-patch bluon metatable
This commit is contained in:
parent
f6a3f31c13
commit
4bf8d23917
@ -1,6 +1,8 @@
|
||||
--! experimental
|
||||
local bluon = getfenv(1)
|
||||
local metatable = {__index = bluon}
|
||||
local metatable = {__index = function(_self, key)
|
||||
return rawget(bluon, key)
|
||||
end}
|
||||
|
||||
function new(self)
|
||||
return setmetatable(self or {}, metatable)
|
||||
|
Loading…
Reference in New Issue
Block a user