forked from Mirrorlandia_minetest/minetest
Exclude vertical mapblock borders when setting light
This commit is contained in:
parent
091594e26e
commit
3bdf3df223
@ -214,7 +214,10 @@ int LuaVoxelManip::l_set_lighting(lua_State *L)
|
|||||||
Mapgen mg;
|
Mapgen mg;
|
||||||
mg.vm = vm;
|
mg.vm = vm;
|
||||||
|
|
||||||
mg.setLighting(p1, p2, light);
|
mg.setLighting(
|
||||||
|
p1 + v3s16(0, 1, 0) * MAP_BLOCKSIZE,
|
||||||
|
p2 - v3s16(0, 1, 0) * MAP_BLOCKSIZE,
|
||||||
|
light);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user