1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Always add increment when getting node interior light

This commit is contained in:
x2048 2022-09-04 22:17:04 +02:00 committed by SmallJoker
parent a075d83752
commit 3e7ee499d6

View file

@ -103,7 +103,6 @@ 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);
return decode_light(light);
}