1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00: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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;