mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2025-02-20 14:00:32 +01:00
Fix water not being set at lower chunk borders
This commit is contained in:
parent
a73a0dd80b
commit
f56857e804
2
init.lua
2
init.lua
@ -133,7 +133,7 @@ local function generate(minp, maxp, seed)
|
||||
end
|
||||
|
||||
if lake_height > sea_level then
|
||||
if is_lake and lake_height > minp.y then
|
||||
if is_lake and lake_height >= minp.y then
|
||||
for y=math.max(minp.y, terrain_height+1), math.min(maxp.y, lake_height) do
|
||||
data[ivm] = c_rwater
|
||||
ivm = ivm + ystride
|
||||
|
Loading…
x
Reference in New Issue
Block a user