aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2021-01-21 00:51:24 +0100
committerGitHub <noreply@github.com>2021-01-21 00:51:24 +0100
commit7f25823bd4f1a822449eb783ee555651a89ce9de (patch)
treea0fae739e61cc60ff14531df409638fc8b4d5f5a /src/client
parenteb8af614a5ee876a2bc9312506bfcfda20501232 (diff)
downloadminetest-7f25823bd4f1a822449eb783ee555651a89ce9de.tar.gz
minetest-7f25823bd4f1a822449eb783ee555651a89ce9de.tar.bz2
minetest-7f25823bd4f1a822449eb783ee555651a89ce9de.zip
Allow "liquid" and "flowingliquid" drawtypes even if liquidtype=none (#10737)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/content_mapblock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/content_mapblock.cpp b/src/client/content_mapblock.cpp
index df2748212..90284ecce 100644
--- a/src/client/content_mapblock.cpp
+++ b/src/client/content_mapblock.cpp
@@ -513,10 +513,10 @@ f32 MapblockMeshGenerator::getCornerLevel(int i, int k)
count++;
} else if (content == CONTENT_AIR) {
air_count++;
- if (air_count >= 2)
- return -0.5 * BS + 0.2;
}
}
+ if (air_count >= 2)
+ return -0.5 * BS + 0.2;
if (count > 0)
return sum / count;
return 0;