mirror of
https://github.com/Splizard/minetest-mod-snow.git
synced 2024-12-29 16:00:16 +01:00
Replace junglegrass with dry shrubs in mapgen.
This commit is contained in:
parent
217a7696b7
commit
8d9b847d74
@ -193,7 +193,7 @@ if maxp.y >= -10 then
|
|||||||
-- Snowy biome stuff
|
-- Snowy biome stuff
|
||||||
local node = env:get_node({x=x,y=ground_y,z=z})
|
local node = env:get_node({x=x,y=ground_y,z=z})
|
||||||
|
|
||||||
if ground_y and node.name == "default:dirt_with_grass" then
|
if ground_y and (node.name == "default:dirt_with_grass" or node.name == "default:junglegrass") then
|
||||||
local veg
|
local veg
|
||||||
if mossy and pr:next(1,10) == 1 then veg = 1 end
|
if mossy and pr:next(1,10) == 1 then veg = 1 end
|
||||||
if alpine then
|
if alpine then
|
||||||
@ -206,7 +206,7 @@ if maxp.y >= -10 then
|
|||||||
env:add_node({x=x,y=y,z=z},{name="default:stone"})
|
env:add_node({x=x,y=y,z=z},{name="default:stone"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif shrubs and pr:next(1,28) == 1 then
|
elseif (shrubs and pr:next(1,28) == 1) or node.name == "default:junglegrass" then
|
||||||
--Spawns dry shrubs.
|
--Spawns dry shrubs.
|
||||||
env:add_node({x=x,y=ground_y,z=z}, {name="snow:dirt_with_snow"})
|
env:add_node({x=x,y=ground_y,z=z}, {name="snow:dirt_with_snow"})
|
||||||
if snowy then
|
if snowy then
|
||||||
|
Loading…
Reference in New Issue
Block a user