]> git.lizzy.rs Git - minetest.git/blobdiff - src/content_craft.cpp
Make client report a newer version number to the server than 2011-07-31 does and...
[minetest.git] / src / content_craft.cpp
index 20ab5f06937b5aa2223d4df0c3d05961ca114209..8e8b17a9b08acda44ef5a949f2590bb6926be1fa 100644 (file)
@@ -428,6 +428,20 @@ InventoryItem *craft_get_result(InventoryItem **items)
                        return new MaterialItem(CONTENT_LADDER, 1);
                }
        }
+       
+       // Iron Apple
+       {
+               ItemSpec specs[9];
+               specs[1] = ItemSpec(ITEM_CRAFT, "steel_ingot");
+               specs[3] = ItemSpec(ITEM_CRAFT, "steel_ingot");
+               specs[4] = ItemSpec(ITEM_CRAFT, "apple");
+               specs[5] = ItemSpec(ITEM_CRAFT, "steel_ingot");
+               specs[7] = ItemSpec(ITEM_CRAFT, "steel_ingot");
+               if(checkItemCombination(items, specs))
+               {
+                       return new CraftItem("apple_iron", 1);
+               }
+       }
 
        return NULL;
 }