From 151d2e034b6cd9242d12c68471d95b8c926f9cf8 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Thu, 26 Jan 2017 23:03:27 -0700 Subject: [PATCH] using water level for mapgen cutoff too --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 28c2e5d..a7953f2 100644 --- a/init.lua +++ b/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")