Fix water not being set at lower chunk borders

This commit is contained in:
Gael-de-Sailly 2020-05-08 10:02:04 +02:00
parent a73a0dd80b
commit f56857e804
1 changed files with 1 additions and 1 deletions

View File

@ -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