forked from Mirrorlandia_minetest/minetest
LuaVoxelManip: Update parameter index of set_lighting()
This commit is contained in:
parent
b38afc9311
commit
98e4e2b373
@ -163,8 +163,8 @@ int LuaVoxelManip::l_set_lighting(lua_State *L)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
u8 light;
|
u8 light;
|
||||||
light = (getintfield_default(L, 4, "day", 0) & 0x0F);
|
light = (getintfield_default(L, 2, "day", 0) & 0x0F);
|
||||||
light |= (getintfield_default(L, 4, "night", 0) & 0x0F) << 8;
|
light |= (getintfield_default(L, 2, "night", 0) & 0x0F) << 8;
|
||||||
|
|
||||||
ManualMapVoxelManipulator *vm = o->vm;
|
ManualMapVoxelManipulator *vm = o->vm;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user