mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Fix end portal shrine being in lava in flat mapgen
This commit is contained in:
parent
3cdf570460
commit
2892c45f52
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ local strongholds = {}
|
||||||
local strongholds_inited = false
|
local strongholds_inited = false
|
||||||
|
|
||||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
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.
|
-- Determine the stronghold positions and store them into the strongholds table.
|
||||||
-- The stronghold positions are based on the world seed.
|
-- The stronghold positions are based on the world seed.
|
||||||
|
@ -45,7 +46,7 @@ local init_strongholds = function()
|
||||||
for a=1, ring.amount do
|
for a=1, ring.amount do
|
||||||
local dist = pr:next(ring.min, ring.max)
|
local dist = pr:next(ring.min, ring.max)
|
||||||
local y
|
local y
|
||||||
if mg_name == "flat" then
|
if superflat then
|
||||||
y = mcl_vars.mg_bedrock_overworld_max + 3
|
y = mcl_vars.mg_bedrock_overworld_max + 3
|
||||||
else
|
else
|
||||||
y = pr:next(mcl_vars.mg_bedrock_overworld_max+1, mcl_vars.mg_overworld_min+48)
|
y = pr:next(mcl_vars.mg_bedrock_overworld_max+1, mcl_vars.mg_overworld_min+48)
|
||||||
|
|
Loading…
Reference in a new issue