Papyrus: Grow on dirt and grass only, remove from desert ocean

This commit is contained in:
paramat 2015-10-05 01:25:23 +01:00
parent 8148bbf95e
commit f4a412d9c1
2 changed files with 3 additions and 4 deletions

View File

@ -152,8 +152,7 @@ end
function default.grow_papyrus(pos, node) function default.grow_papyrus(pos, node)
pos.y = pos.y - 1 pos.y = pos.y - 1
local name = minetest.get_node(pos).name local name = minetest.get_node(pos).name
if name ~= "default:dirt_with_grass" and name ~= "default:dirt" and if name ~= "default:dirt_with_grass" and name ~= "default:dirt" then
name ~= "default:sand" then
return return
end end
if not minetest.find_node_near(pos, 3, {"group:water"}) then if not minetest.find_node_near(pos, 3, {"group:water"}) then

View File

@ -1054,7 +1054,7 @@ function default.register_decorations()
minetest.register_decoration({ minetest.register_decoration({
deco_type = "schematic", deco_type = "schematic",
place_on = {"default:dirt", "default:sand"}, place_on = {"default:dirt"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = -0.3, offset = -0.3,
@ -1064,7 +1064,7 @@ function default.register_decorations()
octaves = 3, octaves = 3,
persist = 0.7 persist = 0.7
}, },
biomes = {"savanna_swamp", "desert_ocean"}, biomes = {"savanna_swamp"},
y_min = 0, y_min = 0,
y_max = 0, y_max = 0,
schematic = minetest.get_modpath("default").."/schematics/papyrus.mts", schematic = minetest.get_modpath("default").."/schematics/papyrus.mts",