mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix debug.getinfo
This commit is contained in:
parent
844eb054af
commit
635b66a8c6
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
|
||||
debug[name] = nil
|
||||
end
|
||||
debug.getinfo = function(...)
|
||||
local debuginfo = _getinfo(...)
|
||||
debug.getinfo = function(lvl, fields)
|
||||
if type(lvl) == "number" then
|
||||
lvl = lvl + 1
|
||||
end
|
||||
local debuginfo = _getinfo(lvl, fields)
|
||||
debuginfo.func = nil
|
||||
return debuginfo
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue