From 3f801bc096077a91094087fab4a4557198429851 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 27 Sep 2022 01:27:47 +0200 Subject: Fix liquid drawtype faces sometimes not rendering (#12807) Co-authored-by: SmallJoker --- src/nodedef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nodedef.cpp') diff --git a/src/nodedef.cpp b/src/nodedef.cpp index f42231736..5707d31a0 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -1681,7 +1681,7 @@ static void removeDupes(std::vector &list) void NodeDefManager::resolveCrossrefs() { for (ContentFeatures &f : m_content_features) { - if (f.liquid_type != LIQUID_NONE || f.drawtype == NDT_LIQUID || f.drawtype == NDT_FLOWINGLIQUID) { + if (f.isLiquid() || f.isLiquidRender()) { f.liquid_alternative_flowing_id = getId(f.liquid_alternative_flowing); f.liquid_alternative_source_id = getId(f.liquid_alternative_source); continue; -- cgit v1.2.3