diff --git a/CHANGELOG.md b/CHANGELOG.md index c5cc509..a3cdfd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Note to self: See the bottom of this file for the release template text. - Add `//metaball`, which renders 2 or more [metaballs](https://en.wikipedia.org/wiki/Metaballs) in Minetest - Migrate from `depends.txt` to `mod.conf` - `//sculpt`: Fix undefined `default` brush + - Commands that modify the terrain now ignore liquids ## v1.13: The transformational update (2nd January 2022) diff --git a/worldeditadditions/utils/terrain/make_heightmap.lua b/worldeditadditions/utils/terrain/make_heightmap.lua index 1b3c67b..c69821b 100644 --- a/worldeditadditions/utils/terrain/make_heightmap.lua +++ b/worldeditadditions/utils/terrain/make_heightmap.lua @@ -23,7 +23,7 @@ local function make_heightmap(pos1, pos2, manip, area, data) -- Scan each column top to bottom for y = pos2.y+1, pos1.y, -1 do local i = area:index(x, y, z) - if not (wea.is_airlike(data[i]) or wea.is_liquidlike(data[i])) then + if not (wea.is_airlike(data[i]) and not wea.is_liquidlike(data[i])) then -- It's the first non-airlike node in this column -- Start heightmap values from 1 (i.e. there's at least 1 node in the column) heightmap[hi] = (y - pos1.y) + 1