forked from VoxeLibre/VoxeLibre
fix surface pools y offset
This commit is contained in:
parent
4b18c7fe8e
commit
69dac8ded4
|
@ -38,7 +38,7 @@ local function makelake(pos,size,liquid,placein,border,pr)
|
||||||
return vector.distance(vector.new(pos.x,0,pos.z), a) < vector.distance(vector.new(pos.x,0,pos.z), b)
|
return vector.distance(vector.new(pos.x,0,pos.z), a) < vector.distance(vector.new(pos.x,0,pos.z), b)
|
||||||
end)
|
end)
|
||||||
if not nn[1] then return end
|
if not nn[1] then return end
|
||||||
local y = pos.y + 1
|
local y = pos.y - 1
|
||||||
local lq = {}
|
local lq = {}
|
||||||
for i=1,pr:next(1,#nn) do
|
for i=1,pr:next(1,#nn) do
|
||||||
if nn[i].y == y then
|
if nn[i].y == y then
|
||||||
|
|
Loading…
Reference in New Issue