From 11b56dfb51476f267f5cf9171348eb244b5e620c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 8 Sep 2017 04:33:30 +0200 Subject: [PATCH] Prevent desert temple spawning on beaches --- mods/MAPGEN/mcl_mapgen_core/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_mapgen_core/init.lua b/mods/MAPGEN/mcl_mapgen_core/init.lua index 955de1562e..6f544dfb8a 100644 --- a/mods/MAPGEN/mcl_mapgen_core/init.lua +++ b/mods/MAPGEN/mcl_mapgen_core/init.lua @@ -1006,7 +1006,7 @@ minetest.register_on_generated(function(minp, maxp, seed) -- Desert temples and desert wells if nn == "mcl_core:sand" or (nn == "mcl_core:sandstone") then - if not chunk_has_desert_temple and not chunk_has_desert_well then + if not chunk_has_desert_temple and not chunk_has_desert_well and ground_level > 3 then -- Spawn desert temple -- TODO: Check surface if math.random(1,12000) == 1 then