mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
Merge branch 'main' into release-0.28
This commit is contained in:
commit
3655467e13
1 changed files with 5 additions and 2 deletions
|
|
@ -535,8 +535,11 @@ local _getinfo = debug.getinfo
|
||||||
for i, name in ipairs(removed_names) do
|
for i, name in ipairs(removed_names) do
|
||||||
debug[name] = nil
|
debug[name] = nil
|
||||||
end
|
end
|
||||||
debug.getinfo = function(...)
|
debug.getinfo = function(lvl, fields)
|
||||||
local debuginfo = _getinfo(...)
|
if type(lvl) == "number" then
|
||||||
|
lvl = lvl + 1
|
||||||
|
end
|
||||||
|
local debuginfo = _getinfo(lvl, fields)
|
||||||
debuginfo.func = nil
|
debuginfo.func = nil
|
||||||
return debuginfo
|
return debuginfo
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue