Remove lava/water springs from flat mapgen
This commit is contained in:
parent
8610b8cb8a
commit
7c3b422a49
|
@ -39,6 +39,8 @@ minetest.register_alias("mapgen_stair_sandstonebrick", "mcl_stairs:stair_sandsto
|
||||||
minetest.register_alias("mapgen_stair_sandstone_block", "mcl_stairs:stair_sandstone")
|
minetest.register_alias("mapgen_stair_sandstone_block", "mcl_stairs:stair_sandstone")
|
||||||
minetest.register_alias("mapgen_stair_desert_stone", "mcl_stairs:stair_sandstone")
|
minetest.register_alias("mapgen_stair_desert_stone", "mcl_stairs:stair_sandstone")
|
||||||
|
|
||||||
|
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Ore generation
|
-- Ore generation
|
||||||
--
|
--
|
||||||
|
@ -503,6 +505,8 @@ minetest.register_ore({
|
||||||
y_max = mcl_util.layer_to_y(32),
|
y_max = mcl_util.layer_to_y(32),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if mg_name ~= "flat" then
|
||||||
|
|
||||||
-- Water and lava springs (single blocks of lava/water source)
|
-- Water and lava springs (single blocks of lava/water source)
|
||||||
-- Water appears at nearly every height, but not near the bottom
|
-- Water appears at nearly every height, but not near the bottom
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
|
@ -574,6 +578,8 @@ minetest.register_ore({
|
||||||
y_max = mcl_util.layer_to_y(127),
|
y_max = mcl_util.layer_to_y(127),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
local function register_mgv6_decorations()
|
local function register_mgv6_decorations()
|
||||||
|
|
||||||
-- Sugar canes
|
-- Sugar canes
|
||||||
|
@ -873,7 +879,6 @@ local function register_mgv6_decorations()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Apply mapgen-specific mapgen code
|
-- Apply mapgen-specific mapgen code
|
||||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
|
||||||
if mg_name == "v6" then
|
if mg_name == "v6" then
|
||||||
register_mgv6_decorations()
|
register_mgv6_decorations()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user