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