Skip to content

Commit

Permalink
Add formspec escape for new tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuzzy2 committed Mar 19, 2020
1 parent 0d966fa commit 93cdfdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easyvend.lua
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ easyvend.set_formspec = function(pos, player)
local tt_i = ""
if minetest.registered_items[itemname] then
local desc_i = ItemStack(itemname):get_description()
tt_i = "tooltip[0,0.35;0.8,0.8;"..desc_i.."]"
tt_i = "tooltip[0,0.35;0.8,0.8;"..F(desc_i).."]"
end
formspec = formspec
.."item_image[0,1.65;1,1;"..easyvend.currency.."]"
.."tooltip[0,1.65;0.8,0.8;"..desc_c.."]"
.."tooltip[0,1.65;0.8,0.8;"..F(desc_c).."]"
.."item_image[0,0.35;1,1;"..itemname.."]"
..tt_i
.."label[1,1.85;×" .. cost .. "]"
Expand Down

0 comments on commit 93cdfdf

Please sign in to comment.