From 9b40d02fbd9e8c39c5c64cc7de89a7fe45382f04 Mon Sep 17 00:00:00 2001
From: SmallJoker <mk939@ymail.com>
Date: Sat, 04 Aug 2018 09:57:30 +0200
Subject: [PATCH] Revert get_3d to deprecated get3d for 0.4.x compatibility

---
 technic_chests/mithril_chest.lua |   34 ++++++++++++++++++----------------
 1 files changed, 18 insertions(+), 16 deletions(-)

diff --git a/technic_chests/mithril_chest.lua b/technic_chests/mithril_chest.lua
index bd2b981..909ff9e 100644
--- a/technic_chests/mithril_chest.lua
+++ b/technic_chests/mithril_chest.lua
@@ -1,20 +1,22 @@
-minetest.register_craft({
-	output = 'technic:mithril_chest 1',
-	recipe = {
-		{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
-		{'moreores:mithril_ingot','technic:gold_chest','moreores:mithril_ingot'},
-		{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
-	}
-})
+if minetest.get_modpath("moreores") then
+	minetest.register_craft({
+		output = 'technic:mithril_chest 1',
+		recipe = {
+			{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
+			{'moreores:mithril_ingot','technic:gold_chest','moreores:mithril_ingot'},
+			{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
+		}
+	})
 
-minetest.register_craft({
-	output = 'technic:mithril_locked_chest 1',
-	recipe = {
-		{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
-		{'moreores:mithril_ingot','technic:gold_locked_chest','moreores:mithril_ingot'},
-		{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
-	}
-})
+	minetest.register_craft({
+		output = 'technic:mithril_locked_chest 1',
+		recipe = {
+			{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
+			{'moreores:mithril_ingot','technic:gold_locked_chest','moreores:mithril_ingot'},
+			{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
+		}
+	})
+end
 
 minetest.register_craft({
 	output = 'technic:mithril_locked_chest 1',

--
Gitblit v1.8.0