File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2186,6 +2186,7 @@ void Map::transformLiquids(std::map<v3s16, MapBlock*> & modified_blocks)
2186
2186
/*
2187
2187
update the current node
2188
2188
*/
2189
+ MapNode n00 = n0;
2189
2190
// bool flow_down_enabled = (flowing_down && ((n0.param2 & LIQUID_FLOW_DOWN_MASK) != LIQUID_FLOW_DOWN_MASK));
2190
2191
if (nodemgr->get (new_node_content).liquid_type == LIQUID_FLOWING) {
2191
2192
// set level to last 3 bits, flowing down bit to 4th bit
@@ -2223,8 +2224,9 @@ void Map::transformLiquids(std::map<v3s16, MapBlock*> & modified_blocks)
2223
2224
MapBlock *block = getBlockNoCreateNoEx (blockpos);
2224
2225
if (block != NULL ) {
2225
2226
modified_blocks[blockpos] = block;
2226
- // If node emits light, MapBlock requires lighting update
2227
- if (nodemgr->get (n0).light_source != 0 )
2227
+ // If new or old node emits light, MapBlock requires lighting update
2228
+ if (nodemgr->get (n0).light_source != 0 ||
2229
+ nodemgr->get (n00).light_source != 0 )
2228
2230
lighting_modified_blocks[block->getPos ()] = block;
2229
2231
}
2230
2232
You can’t perform that action at this time.
0 commit comments