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,
|
ui_peruser.btn_size, ui_peruser.btn_size,
|
||||||
name, button_name
|
name, button_name
|
||||||
)
|
)
|
||||||
formspec[n + 1] = ("tooltip[%s;%s \\[%s\\]]"):format(
|
formspec[n + 1] = ("tooltip[%s;%s]"):format(
|
||||||
button_name, minetest.formspec_escape(item.description),
|
button_name, minetest.formspec_escape(item.description)
|
||||||
item.mod_origin or "??"
|
|
||||||
)
|
)
|
||||||
n = n + 2
|
n = n + 2
|
||||||
list_index = list_index + 1
|
list_index = list_index + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user