1
0
Fork 0

Prevent desert temple spawning on beaches

This commit is contained in:
Wuzzy 2017-09-08 04:33:30 +02:00
parent 22a1b0a5d2
commit 11b56dfb51
1 changed files with 1 additions and 1 deletions

View File

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