mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2024-11-19 22:03:43 +01:00
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:
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
|
||||
|
Loading…
Reference in New Issue
Block a user