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/client/mapblock_mesh.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/client/mapblock_mesh.cpp')
-rw-r--r-- | src/client/mapblock_mesh.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/mapblock_mesh.cpp b/src/client/mapblock_mesh.cpp index d05a786a6..5036f8bd6 100644 --- a/src/client/mapblock_mesh.cpp +++ b/src/client/mapblock_mesh.cpp @@ -651,7 +651,7 @@ static u8 face_contents(content_t m1, content_t m2, bool *equivalent, const ContentFeatures &f2 = ndef->get(m2); // Contents don't differ for different forms of same liquid - if (f1.sameLiquid(f2)) + if (f1.sameLiquidRender(f2)) return 0; u8 c1 = f1.solidness; @@ -668,9 +668,9 @@ static u8 face_contents(content_t m1, content_t m2, bool *equivalent, if (c1 == c2) { *equivalent = true; // If same solidness, liquid takes precense - if (f1.isLiquid()) + if (f1.isLiquidRender()) return 1; - if (f2.isLiquid()) + if (f2.isLiquidRender()) return 2; } |