LuaVoxelManip: Update parameter index of set_lighting()

master
kwolekr 2013-11-21 00:45:17 -05:00
parent b38afc9311
commit 98e4e2b373
1 changed files with 2 additions and 2 deletions

View File

@ -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;