Skip to content
Snippets Groups Projects
Commit 98e4e2b3 authored by kwolekr's avatar kwolekr
Browse files

LuaVoxelManip: Update parameter index of set_lighting()

parent b38afc93
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment