1
0
Fork 0

Fix end portal shrine being in lava in flat mapgen

This commit is contained in:
Wuzzy 2019-03-10 03:30:18 +01:00
parent 3cdf570460
commit 2892c45f52
1 changed files with 2 additions and 1 deletions

View File

@ -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)