mirror of
https://github.com/minetest/minetest.git
synced 2024-12-02 20:43:45 +01:00
Fix profiler crash by builtin since eea1fda (#8239)
Default to '??' (common Minetest notation) for unknown mods.
This commit is contained in:
parent
568540f8e9
commit
291b2446f1
@ -88,7 +88,7 @@ local function instrument(def)
|
|||||||
if not def or not def.func then
|
if not def or not def.func then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
def.mod = def.mod or get_current_modname()
|
def.mod = def.mod or get_current_modname() or "??"
|
||||||
local modname = def.mod
|
local modname = def.mod
|
||||||
local instrument_name = generate_name(def)
|
local instrument_name = generate_name(def)
|
||||||
local func = def.func
|
local func = def.func
|
||||||
|
Loading…
Reference in New Issue
Block a user