Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix param2 set to 240 if liquid source was renewed
  • Loading branch information
Wuzzy2 authored and SmallJoker committed Feb 13, 2020
1 parent df74d36 commit ac5f53e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map.cpp
Expand Up @@ -761,8 +761,8 @@ void Map::transformLiquids(std::map<v3s16, MapBlock*> &modified_blocks,
// set level to last 3 bits, flowing down bit to 4th bit
n0.param2 = (flowing_down ? LIQUID_FLOW_DOWN_MASK : 0x00) | (new_node_level & LIQUID_LEVEL_MASK);
} else {
// set the liquid level and flow bit to 0
n0.param2 = ~(LIQUID_LEVEL_MASK | LIQUID_FLOW_DOWN_MASK);
// set the liquid level and flow bits to 0
n0.param2 &= ~(LIQUID_LEVEL_MASK | LIQUID_FLOW_DOWN_MASK);
}

// change the node.
Expand Down

0 comments on commit ac5f53e

Please sign in to comment.