forked from Minetest/dynamic_liquid
using water level for mapgen cutoff too
parent
32b11a29d1
commit
151d2e034b
2
init.lua
2
init.lua
|
@ -136,7 +136,7 @@ if springs then
|
|||
|
||||
-- Turn mapgen clay into spring clay
|
||||
minetest.register_on_generated(function(minp, maxp, seed)
|
||||
if minp.y >= 0 or maxp.y <= -15 then
|
||||
if minp.y >= water_level or maxp.y <= -15 then
|
||||
return
|
||||
end
|
||||
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
|
||||
|
|
Loading…
Reference in New Issue