mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Fix https://git.minetest.land/MineClone2/MineClone2/issues/1060 - attempt number 3
This commit is contained in:
parent
d274f6f444
commit
15fa1e5b7a
1 changed files with 3 additions and 2 deletions
|
@ -1747,10 +1747,10 @@ local function generate_tree_decorations(minp, maxp, seed, data, param2_data, ar
|
||||||
return lvm_used
|
return lvm_used
|
||||||
end
|
end
|
||||||
|
|
||||||
local pr_shroom = PseudoRandom(os.time()-24359)
|
|
||||||
-- Generate mushrooms in caves manually.
|
-- Generate mushrooms in caves manually.
|
||||||
-- Minetest's API does not support decorations in caves yet. :-(
|
-- Minetest's API does not support decorations in caves yet. :-(
|
||||||
local generate_underground_mushrooms = function(minp, maxp, seed)
|
local generate_underground_mushrooms = function(minp, maxp, seed)
|
||||||
|
local pr_shroom = PseudoRandom(seed-24359)
|
||||||
-- Generate rare underground mushrooms
|
-- Generate rare underground mushrooms
|
||||||
-- TODO: Make them appear in groups, use Perlin noise
|
-- TODO: Make them appear in groups, use Perlin noise
|
||||||
local min, max = mcl_vars.mg_lava_overworld_max + 4, 0
|
local min, max = mcl_vars.mg_lava_overworld_max + 4, 0
|
||||||
|
@ -1775,7 +1775,6 @@ local generate_underground_mushrooms = function(minp, maxp, seed)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local pr_nether = PseudoRandom(os.time()+667)
|
|
||||||
local nether_wart_chance
|
local nether_wart_chance
|
||||||
if mg_name == "v6" then
|
if mg_name == "v6" then
|
||||||
nether_wart_chance = 85
|
nether_wart_chance = 85
|
||||||
|
@ -1785,6 +1784,8 @@ end
|
||||||
-- Generate Nether decorations manually: Eternal fire, mushrooms, nether wart
|
-- Generate Nether decorations manually: Eternal fire, mushrooms, nether wart
|
||||||
-- Minetest's API does not support decorations in caves yet. :-(
|
-- Minetest's API does not support decorations in caves yet. :-(
|
||||||
local generate_nether_decorations = function(minp, maxp, seed)
|
local generate_nether_decorations = function(minp, maxp, seed)
|
||||||
|
local pr_nether = PseudoRandom(seed+667)
|
||||||
|
|
||||||
if minp.y > mcl_vars.mg_nether_max or maxp.y < mcl_vars.mg_nether_min then
|
if minp.y > mcl_vars.mg_nether_max or maxp.y < mcl_vars.mg_nether_min then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue