Skip to content

Commit

Permalink
Remove mod name from tooltips
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SmallJoker committed Dec 11, 2021
1 parent 28a5d4d commit 64b0248
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64b0248

Please sign in to comment.