fix profiler errors if statbars are updated only

* Default to '??' (common Minetest notation) for unknown mods when loaded
* its related to a future implementation of statbars
* related to https://github.com/minetest/minetest/issues/8237
stable-0.4
mckaygerhard 2023-09-13 00:19:12 -04:00
parent 1da6298f14
commit 600ab5f554
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ local function instrument(def)
if not def or not def.func then
return
end
def.mod = def.mod or get_current_modname()
def.mod = def.mod or get_current_modname() or "??"
local modname = def.mod
local instrument_name = generate_name(def)
local func = def.func