Skip to content

Commit 4ccafd1

Browse files
committedSep 17, 2017
Biome registration: Update due to revert of mgv7 'biomerepeat' option
1 parent bf8404f commit 4ccafd1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed
 

‎mods/default/mapgen.lua

+4-7
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,6 @@ end
14451445

14461446

14471447
-- Biomes for floatlands
1448-
-- Used when mgv7 'biomerepeat' flag is false
14491448

14501449
-- TODO Temporary simple biomes to be replaced by special floatland biomes later.
14511450

@@ -2018,10 +2017,9 @@ end
20182017

20192018
-- Get setting or default
20202019
local mgv7_spflags = minetest.get_mapgen_setting("mgv7_spflags") or
2021-
"mountains, ridges, nofloatlands, caverns, biomerepeat"
2020+
"mountains, ridges, nofloatlands, caverns"
20222021
local captures_float = string.match(mgv7_spflags, "floatlands")
20232022
local captures_nofloat = string.match(mgv7_spflags, "nofloatlands")
2024-
local captures_nobiorep = string.match(mgv7_spflags, "nobiomerepeat")
20252023

20262024
-- Get setting or default
20272025
-- Make global for mods to use to register floatland biomes
@@ -2039,12 +2037,11 @@ local mg_name = minetest.get_mapgen_setting("mg_name")
20392037
if mg_name == "v6" then
20402038
default.register_mgv6_ores()
20412039
default.register_mgv6_decorations()
2040+
-- Need to check for 'nofloatlands' because that contains
2041+
-- 'floatlands' which makes the second condition true.
20422042
elseif mg_name == "v7" and
20432043
captures_float == "floatlands" and
2044-
-- Need to check for 'nofloatlands' because that contains
2045-
-- 'floatlands' which makes the second condition true.
2046-
captures_nofloat ~= "nofloatlands" and
2047-
captures_nobiorep == "nobiomerepeat" then
2044+
captures_nofloat ~= "nofloatlands" then
20482045
-- Mgv7 with floatlands and floatland biomes
20492046
default.register_biomes(default.mgv7_shadow_limit - 1)
20502047
default.register_floatland_biomes(

0 commit comments

Comments
 (0)
Please sign in to comment.