From b10f5c314aa6e15c5bb1929dfd08438b4da1168a Mon Sep 17 00:00:00 2001 From: varttist Date: Sun, 20 Sep 2026 21:16:12 +0300 Subject: [PATCH] `MapGen`: fix water generation --- mods/CORE/MapGen/src/MapGen.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/CORE/MapGen/src/MapGen.lua b/mods/CORE/MapGen/src/MapGen.lua index ceebe72..5c319fb 100644 --- a/mods/CORE/MapGen/src/MapGen.lua +++ b/mods/CORE/MapGen/src/MapGen.lua @@ -744,7 +744,7 @@ local function generateNode(mapGenerator, layer, factors, data, data2, index, x, addPostProccessing(biome, mapGenerator, factors, index, x, y, z, 'CAVERN_AIR') -- ... or if the surface height is above the water level... - elseif height > waterLevel then + elseif height >= waterLevel then --- ... and the height of the block is equal to the height of the surface... if y == height then -- ... then turf is generated. @@ -762,7 +762,7 @@ local function generateNode(mapGenerator, layer, factors, data, data2, index, x, end -- ... or if the surface height is below the water level... - elseif height <= waterLevel then + elseif height < waterLevel then -- ... and if the height of the block falls within the thickness of the soil layer... if y > height - biome.soilHeight then -- ... then the river/ocean bottom is generated.