Fix farming (caused by outdated pull)
authorBlockMen <nmuelll@web.de>
Mon, 14 Apr 2014 18:26:30 +0000 (20:26 +0200)
committerBlockMen <nmuelll@web.de>
Sat, 5 Jul 2014 13:56:53 +0000 (15:56 +0200)
mods/farming/init.lua

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