From 2892c45f527b56e4de9709d757c7627e15edc005 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 10 Mar 2019 03:30:18 +0100 Subject: [PATCH] Fix end portal shrine being in lava in flat mapgen --- mods/MAPGEN/mcl_strongholds/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_strongholds/init.lua b/mods/MAPGEN/mcl_strongholds/init.lua index e82540f2..92313bee 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)