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:
parent
eb8af614a5
commit
7f25823bd4
5 changed files with 55 additions and 66 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue