From be2ecf9186286f67edcfbbc4b7cabca7189226b3 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 29 Nov 2011 18:21:00 +0200 Subject: [PATCH] Quick fix to a bug that makes it possible to raise water levels everywhere with one source --- src/map.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/map.cpp b/src/map.cpp index 34bc31ba..0f50a1ef 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1683,7 +1683,9 @@ void Map::transformLiquids(core::map & modified_blocks) if (nodemgr->getId(nodemgr->get(nb.n).liquid_alternative_flowing) != liquid_kind) { neutrals[num_neutrals++] = nb; } else { - sources[num_sources++] = nb; + // Do not count bottom source, it will screw things up + if(dirs[i].Y != -1) + sources[num_sources++] = nb; } break; case LIQUID_FLOWING: -- 2.30.2