summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-05-07 02:54:30 -0400
committerkwolekr <kwolekr@minetest.net>2015-05-07 02:54:35 -0400
commitb246812455737b2d0337dec905ba0256adefd105 (patch)
treecea90089c81f83011895a19e60d194c92379766b /doc
parent656575b59d4f0d67452cca7409c9064f690f038c (diff)
downloadminetest-b246812455737b2d0337dec905ba0256adefd105.tar.gz
minetest-b246812455737b2d0337dec905ba0256adefd105.tar.bz2
minetest-b246812455737b2d0337dec905ba0256adefd105.zip
Schematics: Add indent-with-space option for schematic Lua table serialization
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 6d1e7e705..cb8b8848f 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2178,8 +2178,10 @@ These functions return the leftover itemstack.
* "mts" - a string containing the binary MTS data used in the MTS file format
* "lua" - a string containing Lua code representing the schematic in table format
* `options` is a table containing the following optional parameters:
- * If `use_comments` is true and `format` is "lua", the Lua code generated will have (X, Z)
+ * If `lua_use_comments` is true and `format` is "lua", the Lua code generated will have (X, Z)
* position comments for every X row generated in the schematic data for easier reading.
+ * If `lua_num_indent_spaces` is a nonzero number and `format` is "lua", the Lua code generated
+ * will use that number of spaces as indentation instead of a tab character.
### Misc.
* `minetest.get_connected_players()`: returns list of `ObjectRefs`