From 2d68498dc10bc74a35a5cc0ff4e81b6640807511 Mon Sep 17 00:00:00 2001
From: kpoppel <poulsen.kim@gmail.com>
Date: Wed, 08 May 2013 01:42:22 +0200
Subject: [PATCH] Massive change to the way CNC programs are registered. Now the API is open for adding new nodes and inhibiting some nodes for some materials. No more recipes outside of the CNC machine.

---
 technic/alloy_furnaces_commons.lua |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/technic/alloy_furnaces_commons.lua b/technic/alloy_furnaces_commons.lua
index e058d56..559d002 100644
--- a/technic/alloy_furnaces_commons.lua
+++ b/technic/alloy_furnaces_commons.lua
@@ -19,14 +19,12 @@
 alloy_recipes[registered_recipes_count].dst_name=string3
 alloy_recipes[registered_recipes_count].dst_count=count3
 registered_recipes_count=registered_recipes_count+1
-if UI_recipes_hook then
-	minetest.register_craft({
+if unified_inventory then
+	unified_inventory.register_craft({
 	type = "alloy",
 	output = string3.." "..count3,
-	recipe = {
-		{string1.." "..count1},
-		{string2.." "..count2},
-			}
+	items = {string1.." "..count1,string2.." "..count2},
+	width = 2,
 	})
 	end
 end

--
Gitblit v1.8.0