mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Always add increment when getting node interior light
This commit is contained in:
parent
a075d83752
commit
3e7ee499d6
1 changed files with 1 additions and 2 deletions
|
@ -103,8 +103,7 @@ static u8 getInteriorLight(enum LightBank bank, MapNode n, s32 increment,
|
|||
const NodeDefManager *ndef)
|
||||
{
|
||||
u8 light = n.getLight(bank, ndef->getLightingFlags(n));
|
||||
if (light > 0)
|
||||
light = rangelim(light + increment, 0, LIGHT_SUN);
|
||||
light = rangelim(light + increment, 0, LIGHT_SUN);
|
||||
return decode_light(light);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue