mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
LuaVoxelManip: Update parameter index of set_lighting()
This commit is contained in:
parent
b38afc9311
commit
98e4e2b373
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue