summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-06-29 22:22:25 -0400
committerkwolekr <kwolekr@minetest.net>2013-06-29 22:23:00 -0400
commit067888d54943d301c45843858c763d4f81db215d (patch)
tree4d3a1f9039269f0ff5d0e00cd1c3e8a0df1f1427 /doc/lua_api.txt
parent848c3fe51a842950b14547491c74aaf580dc83ec (diff)
downloadminetest-067888d54943d301c45843858c763d4f81db215d.tar.gz
minetest-067888d54943d301c45843858c763d4f81db215d.tar.bz2
minetest-067888d54943d301c45843858c763d4f81db215d.zip
LuaVoxelManip: Fix minor bug with set_lighting, remove coordinate params for light and liquid updates
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt12
1 files changed, 5 insertions, 7 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 27a35b4f9..3ee68b4b6 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1563,13 +1563,11 @@ methods:
- update_map(): Update map after writing chunk back to map.
^ To be used only by VoxelManip objects created by the mod itself; not a VoxelManip that was
^ retrieved from minetest.get_mapgen_object
-- set_lighting(p1, p2, light): Set the lighting in the region formed by p1 and p2 to light
- ^ light is a table containing two integer fields ranging from 0 to 15, day and night
- ^ To be used only by a VoxelManip object from minetest.get_mapgen_object; otherwise, set lighting will
- ^ be ignored
-- calc_lighting(p1, p2): Calculate lighting in the region formed by p1 and p2
- ^ To be used only by a VoxelManip object from minetest.get_mapgen_object; otherwise, calculated lighting
- ^ will be ignored
+- set_lighting(light): Set the lighting within the VoxelManip
+ ^ light is a table, {day=<0...15>, night=<0...15>}
+ ^ To be used only by a VoxelManip object from minetest.get_mapgen_object
+- calc_lighting(): Calculate lighting within the VoxelManip
+ ^ To be used only by a VoxelManip object from minetest.get_mapgen_object
- update_liquids(): Update liquid flow
VoxelArea: A helper class for voxel areas