Lua_api.txt: Fix documentation for facedir rotation
authorparamat <mat.gregory@virginmedia.com>
Mon, 9 May 2016 22:44:15 +0000 (23:44 +0100)
committerparamat <mat.gregory@virginmedia.com>
Tue, 10 May 2016 01:21:53 +0000 (02:21 +0100)
doc/lua_api.txt

index a4592286a4ea6309afdc16fb1cba771603a7ac6b..e9ace5c8734944c78efca78f0e82ba007e9d5c49 100644 (file)
@@ -554,9 +554,9 @@ node definition:
     ^ The rotation of the node is stored in param2. Furnaces and chests are
       rotated this way. Can be made by using minetest.dir_to_facedir().
       Values range 0 - 23
-      facedir modulo 4 = axisdir
+      facedir / 4 = axis direction:
       0 = y+    1 = z+    2 = z-    3 = x+    4 = x-    5 = y-
-      facedir's two less significant bits are rotation around the axis
+      facedir modulo 4 = rotation around that axis
     paramtype2 == "leveled"
     paramtype2 == "degrotate"
     ^ The rotation of this node is stored in param2. Plants are rotated this way.