summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_vmanip.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-11-21 00:45:17 -0500
committerkwolekr <kwolekr@minetest.net>2013-11-21 00:45:17 -0500
commit98e4e2b373ccb138c1e1244c2995e80b95340ca1 (patch)
treeda0c7213f8486999e575e3b83d0949b44d1bef4b /src/script/lua_api/l_vmanip.cpp
parentb38afc9311e235d2b90d61dbbcf1a18e549073a7 (diff)
downloadminetest-98e4e2b373ccb138c1e1244c2995e80b95340ca1.tar.gz
minetest-98e4e2b373ccb138c1e1244c2995e80b95340ca1.tar.bz2
minetest-98e4e2b373ccb138c1e1244c2995e80b95340ca1.zip
LuaVoxelManip: Update parameter index of set_lighting()
Diffstat (limited to 'src/script/lua_api/l_vmanip.cpp')
-rw-r--r--src/script/lua_api/l_vmanip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/lua_api/l_vmanip.cpp b/src/script/lua_api/l_vmanip.cpp
index 1e9cc350f..db8884e10 100644
--- a/src/script/lua_api/l_vmanip.cpp
+++ b/src/script/lua_api/l_vmanip.cpp
@@ -163,8 +163,8 @@ int LuaVoxelManip::l_set_lighting(lua_State *L)
return 0;
u8 light;
- light = (getintfield_default(L, 4, "day", 0) & 0x0F);
- light |= (getintfield_default(L, 4, "night", 0) & 0x0F) << 8;
+ light = (getintfield_default(L, 2, "day", 0) & 0x0F);
+ light |= (getintfield_default(L, 2, "night", 0) & 0x0F) << 8;
ManualMapVoxelManipulator *vm = o->vm;