From c4bfa652017bc24c4eb6c0d47bae44aa5329c61f Mon Sep 17 00:00:00 2001 From: Desour Date: Tue, 7 Jan 2025 14:53:41 +0100 Subject: [PATCH] Fix black plantlike_rooted without smoothlighting There was code to take the light of the node above, but the color was not updated. To reproduce, don't set paramtype="light", (i.e. not what all the devtest nodes do). --- src/client/content_mapblock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/content_mapblock.cpp b/src/client/content_mapblock.cpp index ad15fcb2e0..a33ad93c76 100644 --- a/src/client/content_mapblock.cpp +++ b/src/client/content_mapblock.cpp @@ -1267,7 +1267,8 @@ void MapblockMeshGenerator::drawPlantlikeRootedNode() getSmoothLightFrame(); } else { MapNode ntop = data->m_vmanip.getNodeNoEx(blockpos_nodes + cur_node.p); - cur_node.light = LightPair(getInteriorLight(ntop, 0, nodedef)); // FIXME: unused write + cur_node.light = LightPair(getInteriorLight(ntop, 0, nodedef)); + cur_node.color = encode_light(cur_node.light, cur_node.f->light_source); } drawPlantlike(tile, true); cur_node.p.Y--;