summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
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