diff options
| author | Wuzzy <Wuzzy@disroot.org> | 2022-09-27 01:27:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-26 19:27:47 -0400 |
| commit | 3f801bc096077a91094087fab4a4557198429851 (patch) | |
| tree | 425391def009733a4c437ef6b6ef12f022bdb1ad /src/nodedef.cpp | |
| parent | f4a01f3a5dc0d8fe2f4f6d804d790da91d1bc30c (diff) | |
| download | minetest-3f801bc096077a91094087fab4a4557198429851.tar.xz | |
Fix liquid drawtype faces sometimes not rendering (#12807)
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Diffstat (limited to 'src/nodedef.cpp')
| -rw-r--r-- | src/nodedef.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<content_t> &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; |
