From d452d16fa6a0364e0c8e171a4b333d6b85e0c519 Mon Sep 17 00:00:00 2001
From: est31 <MTest31@outlook.com>
Date: Tue, 03 Feb 2015 07:43:58 +0100
Subject: [PATCH] Make technic chests independent from unified inventory

---
 technic/tools/tree_tap.lua |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/technic/tools/tree_tap.lua b/technic/tools/tree_tap.lua
index fe082d4..2ab6823 100644
--- a/technic/tools/tree_tap.lua
+++ b/technic/tools/tree_tap.lua
@@ -1,5 +1,6 @@
 
 local S = technic.getter
+local mesecons_materials = minetest.get_modpath("mesecons_materials")
 
 minetest.register_tool("technic:treetap", {
 	description = S("Tree Tap"),
@@ -39,17 +40,19 @@
 		{"",               "default:stick", "default:stick"}
 	},
 })
-     
+
 minetest.register_craftitem("technic:raw_latex", {
 	description = S("Raw Latex"),
 	inventory_image = "technic_raw_latex.png",
 })
-     
-minetest.register_craft({
-	type = "cooking",
-	output = "technic:rubber",
-	recipe = "technic:raw_latex",
-})
+
+if mesecons_materials then
+	minetest.register_craft({
+		type = "cooking",
+		recipe = "technic:raw_latex",
+		output = "mesecons_materials:glue",
+	})
+end
 
 minetest.register_craftitem("technic:rubber", {
 	description = S("Rubber Fiber"),

--
Gitblit v1.8.0