Skip to content

Commit d50b2ed

Browse files
committedApr 6, 2013
Adjusting water removing above unloaded blocks
1 parent 453d79e commit d50b2ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/map.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1763,9 +1763,9 @@ void Map::transformLiquidsFinite(std::map<v3s16, MapBlock*> & modified_blocks)
17631763
total_level = LIQUID_LEVEL_SOURCE * can_liquid_same_level;
17641764
}
17651765

1766-
// prevent lakes in air under unloaded blocks
1766+
// prevent lakes in air above unloaded blocks
17671767
if (p0.Y > water_level && neighbors[D_BOTTOM].n.getContent() == CONTENT_IGNORE) {
1768-
total_level = 0;
1768+
--total_level;
17691769
}
17701770

17711771
// calculate self level 5 blocks

0 commit comments

Comments
 (0)
Please sign in to comment.