Skip to content

Commit

Permalink
Adjusting water removing above unloaded blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Apr 6, 2013
1 parent 453d79e commit d50b2ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map.cpp
Expand Up @@ -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
Expand Down

0 comments on commit d50b2ed

Please sign in to comment.