Skip to content

Commit 0459eca

Browse files
committedJan 20, 2016
Liquid flow: Prevent water spreading on ignore
1 parent 882a89d commit 0459eca

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎src/map.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -1732,11 +1732,14 @@ void Map::transformLiquids(std::map<v3s16, MapBlock*> & modified_blocks)
17321732
if (nb.t != NEIGHBOR_UPPER && liquid_type != LIQUID_NONE)
17331733
m_transforming_liquid.push_back(npos);
17341734
// if the current node happens to be a flowing node, it will start to flow down here.
1735-
if (nb.t == NEIGHBOR_LOWER) {
1735+
if (nb.t == NEIGHBOR_LOWER)
17361736
flowing_down = true;
1737-
}
17381737
} else {
17391738
neutrals[num_neutrals++] = nb;
1739+
// If neutral below is ignore prevent water spreading outwards
1740+
if (nb.t == NEIGHBOR_LOWER &&
1741+
nb.n.getContent() == CONTENT_IGNORE)
1742+
flowing_down = true;
17401743
}
17411744
break;
17421745
case LIQUID_SOURCE:

0 commit comments

Comments
 (0)
Please sign in to comment.