Fix some realm bugs

This commit is contained in:
Wuzzy 2017-08-16 14:06:01 +02:00
parent f7f6a89d64
commit 91b92a2cfd
2 changed files with 10 additions and 10 deletions

@ -1078,7 +1078,6 @@ local function register_biomelike_ores()
}, },
}) })
end end
@ -1487,7 +1486,7 @@ local function register_decorations()
deco_type = "simple", deco_type = "simple",
place_on = {"mcl_nether:netherrack"}, place_on = {"mcl_nether:netherrack"},
sidelen = 80, sidelen = 80,
fill_ratio = 0.4, fill_ratio = 0.01,
biomes = {"nether"}, biomes = {"nether"},
y_min = -6000, y_min = -6000,
y_max = 31000, y_max = 31000,
@ -1498,20 +1497,19 @@ local function register_decorations()
deco_type = "simple", deco_type = "simple",
place_on = {"mcl_nether:netherrack"}, place_on = {"mcl_nether:netherrack"},
sidelen = 80, sidelen = 80,
fill_ratio = 0.3, fill_ratio = 0.01,
biomes = {"nether"}, biomes = {"nether"},
y_min = -6000, y_min = -6000,
y_max = 31000, y_max = 31000,
decoration = "mcl_mushrooms:mushroom_brown", decoration = "mcl_mushrooms:mushroom_brown",
}) })
-- FIXME: Does the placement of eternal fire and nether wart actually work? --Eternal Fire
--Fire
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"mcl_nether:netherrack"}, place_on = {"mcl_nether:netherrack"},
sidelen = 8, sidelen = 16,
fill_ratio = 0.9, fill_ratio = 0.2,
biomes = {"nether"}, biomes = {"nether"},
y_min = -6000, y_min = -6000,
y_max = 31000, y_max = 31000,

@ -1244,14 +1244,16 @@ minetest.register_on_generated(function(minp, maxp)
elseif y == BEDROCK_MAX -4 then elseif y == BEDROCK_MAX -4 then
-- 100% -- 100%
setdata = c_bedrock setdata = c_bedrock
elseif y < BEDROCK_MIN then elseif y < BEDROCK_MIN and y > -1000 then
setdata = c_void setdata = c_void
elseif y > 1000 and y < 2000 then
setdata = c_stone
end end
else else
-- Perfectly flat bedrock layer(s) -- Perfectly flat bedrock layer(s)
if y >= BEDROCK_MIN and y <= BEDROCK_MAX then if y >= BEDROCK_MIN and y <= BEDROCK_MAX then
setdata = c_bedrock setdata = c_bedrock
elseif y < BEDROCK_MIN then elseif y < BEDROCK_MIN and y > -1000 then
setdata = c_void setdata = c_void
end end
end end
@ -1259,7 +1261,7 @@ minetest.register_on_generated(function(minp, maxp)
if setdata then if setdata then
data[p_pos] = setdata data[p_pos] = setdata
lvm_used = true lvm_used = true
elseif mcl_vars.mg_lava and y <= mcl_vars.mg_lava_overworld_max then elseif mcl_vars.mg_lava and y <= mcl_vars.mg_lava_overworld_max and y >= mcl_vars.mg_overworld_min then
if data[p_pos] == c_air then if data[p_pos] == c_air then
data[p_pos] = c_lava data[p_pos] = c_lava
end end