Skip to content

Commit 98e4e2b

Browse files
committedNov 21, 2013
LuaVoxelManip: Update parameter index of set_lighting()
1 parent b38afc9 commit 98e4e2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/script/lua_api/l_vmanip.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ int LuaVoxelManip::l_set_lighting(lua_State *L)
163163
return 0;
164164

165165
u8 light;
166-
light = (getintfield_default(L, 4, "day", 0) & 0x0F);
167-
light |= (getintfield_default(L, 4, "night", 0) & 0x0F) << 8;
166+
light = (getintfield_default(L, 2, "day", 0) & 0x0F);
167+
light |= (getintfield_default(L, 2, "night", 0) & 0x0F) << 8;
168168

169169
ManualMapVoxelManipulator *vm = o->vm;
170170

0 commit comments

Comments
 (0)
Please sign in to comment.