Potatoe plants get a “#” shape, too

This commit is contained in:
Wuzzy 2017-03-14 22:01:41 +01:00
parent 1d8b8d5c73
commit 6901781b49
2 changed files with 8 additions and 2 deletions

View file

@ -145,9 +145,9 @@ mcl_dye.apply_bone_meal = function(pointed_thing)
elseif string.find(n.name, "mcl_farming:potato_") ~= nil then
stage = tonumber(string.sub(n.name, -1))
if stage == 1 then
minetest.add_node(pos, {name="mcl_farming:potato_"..math.random(stage,2)})
minetest.add_node(pos, {name="mcl_farming:potato_"..math.random(stage,2), param = n.param, param2 = n.param2})
else
minetest.add_node(pos, {name="mcl_farming:potato"})
minetest.add_node(pos, {name="mcl_farming:potato", param = n.param, param2 = n.param2})
end
return true
elseif string.find(n.name, "mcl_farming:beetroot_") ~= nil then