Differences From
Artifact [3d3bef9b5d]:
6 6 local lastmod, lastarea
7 7
8 8 function dbg.debugger(area)
9 9 local depth = 0
10 10 local d = {}
11 11 function d.enter() depth = depth+1 end
12 12 function d.exit() depth = depth-1 end
13 - local mod = minetest.get_current_modname()
13 + local mod = core.get_current_modname()
14 14 if dbg.aloud then
15 15 function d.report(fmt, ...)
16 16 local where = debug.getinfo(2)
17 17 local caller = debug.getinfo(3)
18 18 if mod and (lastmod ~= mod or lastarea ~= area) then
19 19 local ms = mod or ''
20 20 if area then ms = ms .. '.' .. area end