Skip to content
Permalink
Browse files

Fix param2 set to 240 if liquid source was renewed

  • Loading branch information
Wuzzy2 authored and SmallJoker committed Feb 12, 2020
1 parent df74d36 commit ac5f53e364838b52096f86a0313cae452c7d62b8
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/map.cpp
@@ -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.

0 comments on commit ac5f53e

Please sign in to comment.
You can’t perform that action at this time.