diff --git a/mods/MAPGEN/mcl_strongholds/init.lua b/mods/MAPGEN/mcl_strongholds/init.lua index e82540f2f..92313bee7 100644 --- a/mods/MAPGEN/mcl_strongholds/init.lua +++ b/mods/MAPGEN/mcl_strongholds/init.lua @@ -19,6 +19,7 @@ local strongholds = {} local strongholds_inited = false local mg_name = minetest.get_mapgen_setting("mg_name") +local superflat = mg_name == "flat" and minetest.get_mapgen_setting("mcl_superflat_classic") == "true" -- Determine the stronghold positions and store them into the strongholds table. -- The stronghold positions are based on the world seed. @@ -45,7 +46,7 @@ local init_strongholds = function() for a=1, ring.amount do local dist = pr:next(ring.min, ring.max) local y - if mg_name == "flat" then + if superflat then y = mcl_vars.mg_bedrock_overworld_max + 3 else y = pr:next(mcl_vars.mg_bedrock_overworld_max+1, mcl_vars.mg_overworld_min+48)