Fix bugs when using marker names that need to be escaped.

master
luk3yx 2018-12-30 16:45:32 +13:00
parent a550c20350
commit 7922212da8
1 changed files with 1 additions and 5 deletions

View File

@ -132,12 +132,8 @@ function advmarkers.display_formspec()
if name == selected_name then
selected = id
end
name = minetest.formspec_escape(name)
if name:sub(1, 1) == '#' then
name = '#' .. name
end
formspec_list[#formspec_list + 1] = name
formspec = formspec .. name
formspec = formspec .. '##' .. minetest.formspec_escape(name)
end
end