mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Quick fix to a bug that makes it possible to raise water levels everywhere with one source
This commit is contained in:
@@ -1683,7 +1683,9 @@ void Map::transformLiquids(core::map<v3s16, MapBlock*> & modified_blocks)
|
|||||||
if (nodemgr->getId(nodemgr->get(nb.n).liquid_alternative_flowing) != liquid_kind) {
|
if (nodemgr->getId(nodemgr->get(nb.n).liquid_alternative_flowing) != liquid_kind) {
|
||||||
neutrals[num_neutrals++] = nb;
|
neutrals[num_neutrals++] = nb;
|
||||||
} else {
|
} 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;
|
break;
|
||||||
case LIQUID_FLOWING:
|
case LIQUID_FLOWING:
|
||||||
|
Reference in New Issue
Block a user