aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;