Adjusting water removing above unloaded blocks
authorproller <proller@github.com>
Sat, 6 Apr 2013 19:07:06 +0000 (23:07 +0400)
committerproller <proller@github.com>
Sat, 6 Apr 2013 20:05:39 +0000 (00:05 +0400)
src/map.cpp

index c9f473dc2cb150b9c8d39b24fa85d1b905067f21..a8201f3ee7cb0456c050e187e4df231837b8a9a6 100644 (file)
@@ -1763,9 +1763,9 @@ void Map::transformLiquidsFinite(std::map<v3s16, MapBlock*> & modified_blocks)
                        total_level = LIQUID_LEVEL_SOURCE * can_liquid_same_level; 
                }
 
-               // prevent lakes in air under unloaded blocks
+               // prevent lakes in air above unloaded blocks
                if (p0.Y > water_level && neighbors[D_BOTTOM].n.getContent() == CONTENT_IGNORE) {
-                       total_level = 0;
+                       --total_level;
                }
 
                // calculate self level 5 blocks