From 987cc5a6a425b1f9bcd9000608dc389a45c675a1 Mon Sep 17 00:00:00 2001
From: you <ovvv@web.de>
Date: Mon, 05 Jun 2017 16:51:59 +0200
Subject: [PATCH] Add api documentation (#361)

---
 technic/machines/register/centrifuge_recipes.lua |   20 +++++++-------------
 1 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/technic/machines/register/centrifuge_recipes.lua b/technic/machines/register/centrifuge_recipes.lua
index 7f252b6..4684ba0 100644
--- a/technic/machines/register/centrifuge_recipes.lua
+++ b/technic/machines/register/centrifuge_recipes.lua
@@ -10,24 +10,14 @@
 	technic.register_recipe("separating", data)
 end
 
-local rubber_tree_planks = minetest.get_modpath("moretrees") and "moretrees:rubber_tree_planks" or "default:wood"
-
 local recipes = {
 	{ "technic:bronze_dust 4",             "technic:copper_dust 3",       "technic:tin_dust"      },
 	{ "technic:stainless_steel_dust 4",    "technic:wrought_iron_dust 3", "technic:chromium_dust" },
 	{ "technic:brass_dust 3",              "technic:copper_dust 2",       "technic:zinc_dust"     },
-	{ "moretrees:rubber_tree_trunk_empty", rubber_tree_planks.." 4",      "technic:raw_latex"     },
-	{ "moretrees:rubber_tree_trunk",       rubber_tree_planks.." 4",      "technic:raw_latex"     },
+	{ "technic:chernobylite_dust",         "default:sand",                "technic:uranium3_dust" },
+	{ "default:dirt 4",                    "default:sand",                "default:gravel",       "default:clay_lump 2"     },
 }
 
--- Refining uranium via centrifuge is intended to make it a practical
--- necessity to set up an automated cascade of centrifuges.  Once the
--- cascade has been primed, production of one 3.5%-fissile dust requires
--- input of five 0.7%-fissile dust and 490 centrifuge operations, and
--- produces four 0.0%-fissile dust as a byproduct.  The busiest stage
--- of the cascade is the one taking 0.7%-fissile dust, which performs 28
--- of the 490 operations.  The least busy is the one taking 3.4%-fissile
--- dust, which performs 1 of the 490 operations.
 local function uranium_dust(p)
 	return "technic:uranium"..(p == 7 and "" or p).."_dust"
 end
@@ -41,6 +31,10 @@
 	end
 end
 
+if minetest.get_modpath("farming") then
+	table.insert(recipes, { "farming:wheat 4", "farming:seed_wheat 3", "default:dry_shrub 1" })
+end
+
 for _, data in pairs(recipes) do
-	technic.register_separating_recipe({ input = { data[1] }, output = { data[2], data[3] } })
+	technic.register_separating_recipe({ input = { data[1] }, output = { data[2], data[3], data[4] } })
 end

--
Gitblit v1.8.0