projects
/
zefram
/
minetest
/
pipeworks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17cae3a
)
Escape text for cycling form button
zefram/use
author
Zefram
<zefram@fysh.org>
Sun, 17 Aug 2014 13:53:21 +0000
(14:53 +0100)
committer
Zefram
<zefram@fysh.org>
Sun, 17 Aug 2014 13:53:21 +0000
(14:53 +0100)
common.lua
patch
|
blob
|
history
diff --git
a/common.lua
b/common.lua
index 6a921983eea4ab1b93597be514848c45d2dfc79e..5ccf7d5aeff99610fb46327747203301cbea13ce 100755
(executable)
--- a/
common.lua
+++ b/
common.lua
@@
-128,7
+128,7
@@
function fs_helpers.cycling_button(meta, base, meta_name, values)
local new_value = (current_value + 1) % (#values)
local text = values[current_value + 1]
local field = "fs_helpers_cycling:"..new_value..":"..meta_name
- return base..";"..field..";"..
text
.."]"
+ return base..";"..field..";"..
minetest.formspec_escape(text)
.."]"
end
---------
@@
-141,4
+141,4
@@
function minetest.load_position(pos)
end
local vm = minetest.get_voxel_manip()
vm:read_from_map(pos, pos)
-end
\ No newline at end of file
+end