diff --git a/mods/HUD/mcl_item_names/init.lua b/mods/HUD/mcl_item_names/init.lua index 8916eb41..7aa9721a 100644 --- a/mods/HUD/mcl_item_names/init.lua +++ b/mods/HUD/mcl_item_names/init.lua @@ -40,7 +40,11 @@ minetest.register_globalstep(function(dtime) dtimes[player_name] = 0 if huds[player_name] then local def = minetest.registered_items[wstack] - local desc = def and def.description or "" + local desc = def and def.description + if not desc or desc == "" then + -- Use itemstring as fallback + desc = wstack + end -- Cut off item description after first newline local firstnewline = string.find(desc, "\n") if firstnewline then