Skip to content
Permalink
Browse files

LuaVoxelManip: Update parameter index of set_lighting()

  • Loading branch information
kwolekr committed Nov 21, 2013
1 parent b38afc9 commit 98e4e2b373ccb138c1e1244c2995e80b95340ca1
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit 98e4e2b

Please sign in to comment.
You can’t perform that action at this time.