1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Allow "liquid" and "flowingliquid" drawtypes even if liquidtype=none (#10737)

This commit is contained in:
Wuzzy
2021-01-21 00:51:24 +01:00
committed by GitHub
parent eb8af614a5
commit 7f25823bd4
5 changed files with 55 additions and 66 deletions

View File

@@ -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;