Fix bugs when using marker names that need to be escaped.
This commit is contained in:
parent
a550c20350
commit
7922212da8
6
init.lua
6
init.lua
|
@ -132,12 +132,8 @@ function advmarkers.display_formspec()
|
||||||
if name == selected_name then
|
if name == selected_name then
|
||||||
selected = id
|
selected = id
|
||||||
end
|
end
|
||||||
name = minetest.formspec_escape(name)
|
|
||||||
if name:sub(1, 1) == '#' then
|
|
||||||
name = '#' .. name
|
|
||||||
end
|
|
||||||
formspec_list[#formspec_list + 1] = name
|
formspec_list[#formspec_list + 1] = name
|
||||||
formspec = formspec .. name
|
formspec = formspec .. '##' .. minetest.formspec_escape(name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue