From 3e7ee499d6e68c39d499ae0f494fffe17cfa87af Mon Sep 17 00:00:00 2001 From: x2048 Date: Sun, 4 Sep 2022 22:17:04 +0200 Subject: [PATCH] Always add increment when getting node interior light --- src/client/mapblock_mesh.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/mapblock_mesh.cpp b/src/client/mapblock_mesh.cpp index 519932cd4..9e141e290 100644 --- a/src/client/mapblock_mesh.cpp +++ b/src/client/mapblock_mesh.cpp @@ -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); }