diff options
author | Beha <shacknetisp@mail.com> | 2017-03-23 14:05:48 -0400 |
---|---|---|
committer | Beha <shacknetisp@mail.com> | 2017-03-23 14:05:48 -0400 |
commit | 35b96637d44f660b30fad5f03e07ce025a44017f (patch) | |
tree | 35bc90d311b750d954d7b8bfbd8e4ce0cc8a1202 | |
parent | 410ac0061e686599a9abefb970d01df8c8660231 (diff) |
Escape labels.
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -466,7 +466,7 @@ for _,mode in ipairs({"on", "off"}) do for ji,jv in ipairs(motor.pnames) do if tonumber(jv) ~= pos.y then table.insert(tpnames, jv) - table.insert(tpnames_l, (motor.labels[ji] and motor.labels[ji] ~= "") and (jv.." - "..motor.labels[ji]) or jv) + table.insert(tpnames_l, (motor.labels[ji] and motor.labels[ji] ~= "") and (jv.." - "..minetest.formspec_escape(motor.labels[ji])) or jv) end end formspecs[sender:get_player_name()] = {pos, tpnames} |