From 7922212da8e210d55e969079a97f7f53c4ae18d2 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Sun, 30 Dec 2018 16:45:32 +1300 Subject: [PATCH] Fix bugs when using marker names that need to be escaped. --- init.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 31d272b..a5bfebe 100644 --- a/init.lua +++ b/init.lua @@ -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