From e48f15c135534b8a7a0ef880cb4725849d4d73f7 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 25 Jun 2023 18:26:24 +0200 Subject: [PATCH] Skip liquid updates in MapgenSinglenode if not applicable --- src/mapgen/mapgen_singlenode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mapgen/mapgen_singlenode.cpp b/src/mapgen/mapgen_singlenode.cpp index 1a6cba6b0..6585ea7a9 100644 --- a/src/mapgen/mapgen_singlenode.cpp +++ b/src/mapgen/mapgen_singlenode.cpp @@ -74,8 +74,8 @@ void MapgenSinglenode::makeChunk(BlockMakeData *data) } } - // Add top and bottom side of water to transforming_liquid queue - updateLiquid(&data->transforming_liquid, node_min, node_max); + if (ndef->get(n_node).isLiquid()) + updateLiquid(&data->transforming_liquid, node_min, node_max); // Set lighting if ((flags & MG_LIGHT) && set_light == LIGHT_SUN)