Fix farming (caused by outdated pull)

This commit is contained in:
BlockMen 2014-04-14 20:26:30 +02:00
parent d0a98b5331
commit 07d3981d61

@ -182,26 +182,23 @@ minetest.register_craft({
-- Override grass for drops -- Override grass for drops
-- --
for i = 1, 5 do for i = 1, 5 do
newgrass = minetest.clone_node("default:grass_"..i)
newgrass.drop = { minetest.override_item("default:grass_"..i, {drop = {
max_items = 1, max_items = 1,
items = { items = {
{items = {'farming:seed_wheat'},rarity = 5}, {items = {'farming:seed_wheat'},rarity = 5},
{items = {'default:grass_1'}}, {items = {'default:grass_1'}},
} }
} }})
minetest.register_node(":default:grass_"..i, newgrass)
end end
newjunglegrass = minetest.clone_node("default:junglegrass") minetest.override_item("default:junglegrass", {drop = {
newjunglegrass.drop = {
max_items = 1, max_items = 1,
items = { items = {
{items = {'farming:seed_cotton'},rarity = 8}, {items = {'farming:seed_cotton'},rarity = 8},
{items = {'default:junglegrass'}}, {items = {'default:junglegrass'}},
} }
} }})
minetest.register_node(":default:junglegrass", newjunglegrass)
-- --
-- Place seeds -- Place seeds