Minor changes

This commit is contained in:
Craig Robbins 2014-08-22 17:52:51 +10:00 committed by Vanessa Ezekowitz
parent b212a53158
commit 4d2a58027e

View File

@ -13,14 +13,15 @@ assert(abstract_ferns.config.enable_horsetails == true)
abstract_ferns.grow_horsetail = function(pos)
local horsetail_size = math.random(1, 4)
local dest = {x=pos.x, y=pos.y+1, z=pos.z}
if horsetail_size == 1 then
minetest.set_node({x=pos.x, y=pos.y+1, z=pos.z}, {name="ferns:horsetail_01"})
minetest.set_node(dest, {name="ferns:horsetail_01"})
elseif horsetail_size == 2 then
minetest.set_node({x=pos.x, y=pos.y+1, z=pos.z}, {name="ferns:horsetail_02"})
minetest.set_node(dest, {name="ferns:horsetail_02"})
elseif horsetail_size == 3 then
minetest.set_node({x=pos.x, y=pos.y+1, z=pos.z}, {name="ferns:horsetail_03"})
elseif horsetail_size == 4 then
minetest.set_node({x=pos.x, y=pos.y+1, z=pos.z}, {name="ferns:horsetail_04"})
minetest.set_node(dest, {name="ferns:horsetail_03"})
else -- horsetail_size == 4
minetest.set_node(dest, {name="ferns:horsetail_04"})
end
end
@ -165,8 +166,7 @@ if abstract_ferns.config.enable_horsetails_on_stones == true then
"default:mossycobble",
"stoneage:dirt_with_silex",
"stoneage:grass_with_silex",
"stoneage:sand_with_silex"--, -- roots go deep
--"sumpf:sumpf"
"stoneage:sand_with_silex", -- roots go deep
},
max_count = 35,
rarity = 20,