From 98e4e2b373ccb138c1e1244c2995e80b95340ca1 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Thu, 21 Nov 2013 00:45:17 -0500 Subject: LuaVoxelManip: Update parameter index of set_lighting() --- src/script/lua_api/l_vmanip.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script/lua_api/l_vmanip.cpp') 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; -- cgit v1.2.3