From ac5f53e364838b52096f86a0313cae452c7d62b8 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 12 Feb 2020 22:08:43 +0100 Subject: [PATCH] Fix param2 set to 240 if liquid source was renewed --- src/map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map.cpp b/src/map.cpp index f1911d1a7..a6b9d398f 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -761,8 +761,8 @@ void Map::transformLiquids(std::map &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.