Remove mod name from tooltips

Requested in #190. The mod name is not relevant for most players, and the full item name can still be seen in the craft recipe viewer mode.
This commit is contained in:
SmallJoker 2021-12-11 17:15:58 +01:00
parent 28a5d4db49
commit 64b0248c77

@ -238,9 +238,8 @@ local function formspec_add_item_browser(player, formspec, ui_peruser)
ui_peruser.btn_size, ui_peruser.btn_size,
name, button_name
)
formspec[n + 1] = ("tooltip[%s;%s \\[%s\\]]"):format(
button_name, minetest.formspec_escape(item.description),
item.mod_origin or "??"
formspec[n + 1] = ("tooltip[%s;%s]"):format(
button_name, minetest.formspec_escape(item.description)
)
n = n + 2
list_index = list_index + 1