forked from MineClone5/MineClone5
Prevent desert temple spawning on beaches
This commit is contained in:
parent
22a1b0a5d2
commit
11b56dfb51
|
@ -1006,7 +1006,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||||
|
|
||||||
-- Desert temples and desert wells
|
-- Desert temples and desert wells
|
||||||
if nn == "mcl_core:sand" or (nn == "mcl_core:sandstone") then
|
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
|
-- Spawn desert temple
|
||||||
-- TODO: Check surface
|
-- TODO: Check surface
|
||||||
if math.random(1,12000) == 1 then
|
if math.random(1,12000) == 1 then
|
||||||
|
|
Loading…
Reference in New Issue