From a075d837524ab66cb3bd0cd1603ab00e29e205f6 Mon Sep 17 00:00:00 2001 From: x2048 Date: Sun, 4 Sep 2022 22:15:21 +0200 Subject: [PATCH] Use the same light level for non-solid draw types as for solid --- src/client/content_mapblock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/content_mapblock.cpp b/src/client/content_mapblock.cpp index a9abbceeb..b46fde5e3 100644 --- a/src/client/content_mapblock.cpp +++ b/src/client/content_mapblock.cpp @@ -1131,7 +1131,7 @@ void MapblockMeshGenerator::drawPlantlikeRootedNode() getSmoothLightFrame(); } else { MapNode ntop = data->m_vmanip.getNodeNoEx(blockpos_nodes + p); - light = LightPair(getInteriorLight(ntop, 1, nodedef)); + light = LightPair(getInteriorLight(ntop, 0, nodedef)); } drawPlantlike(true); p.Y--; @@ -1594,7 +1594,7 @@ void MapblockMeshGenerator::drawNode() if (data->m_smooth_lighting) getSmoothLightFrame(); else - light = LightPair(getInteriorLight(n, 1, nodedef)); + light = LightPair(getInteriorLight(n, 0, nodedef)); switch (f->drawtype) { case NDT_FLOWINGLIQUID: drawLiquidNode(); break; case NDT_GLASSLIKE: drawGlasslikeNode(); break;