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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user