From fb93388f06fe87ee75aaaf04cf6edcf01a26d981 Mon Sep 17 00:00:00 2001
From: SmallJoker <mk939@ymail.com>
Date: Thu, 19 Jul 2018 14:36:21 +0200
Subject: [PATCH] Replace deprecated invsize[] with size[]

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

diff --git a/technic_chests/mithril_chest.lua b/technic_chests/mithril_chest.lua
index 69e7f17..909ff9e 100644
--- a/technic_chests/mithril_chest.lua
+++ b/technic_chests/mithril_chest.lua
@@ -1,25 +1,27 @@
-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'},
+		}
+	})
+end
 
 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 = {
-		{'technic:wrought_iron_ingot'},
+		{'default:steel_ingot'},
 		{'technic:mithril_chest'},
 	}
 })

--
Gitblit v1.8.0