summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPinky Snow <thepinkysnowman@gmail.com>2016-01-16 05:23:00 -0500
committerparamat <mat.gregory@virginmedia.com>2016-01-16 13:06:41 +0000
commit22bc66d3a7b96f0742669a988b45d07d58e32928 (patch)
treef92108e0bd05b70ff701712b6ed70ad182a08b7b
parent487ab593d031bf310bd76b3edfe2ad42c1e248b5 (diff)
downloadminetest-22bc66d3a7b96f0742669a988b45d07d58e32928.tar.gz
minetest-22bc66d3a7b96f0742669a988b45d07d58e32928.tar.bz2
minetest-22bc66d3a7b96f0742669a988b45d07d58e32928.zip
corrected minetest.pos_to_string()
corrected this bit reflect the function properly.
-rw-r--r--doc/lua_api.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index a3bb64818..0ff8f031d 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1715,8 +1715,9 @@ Helper functions
* e.g. `string:split("a,b", ",") == {"a","b"}`
* `string:trim()`
* e.g. `string.trim("\n \t\tfoo bar\t ") == "foo bar"`
-* `minetest.pos_to_string({x=X,y=Y,z=Z})`: returns `"(X,Y,Z)"`
+* `minetest.pos_to_string({x=X,y=Y,z=Z}, decimal_places))`: returns `"(X,Y,Z)"`
* Convert position to a printable string
+ Optional: 'decimal_places' will round the x, y and z of the pos to the given decimal place.
* `minetest.string_to_pos(string)`: returns a position
* Same but in reverse. Returns `nil` if the string can't be parsed to a position.
* `minetest.string_to_area("(X1, Y1, Z1) (X2, Y2, Z2)")`: returns two positions