From 306c025713487b20a20e32e33277d2f215a70832 Mon Sep 17 00:00:00 2001
From: TenPlus1 <kinsellaja@yahoo.com>
Date: Sun, 5 Jun 2016 11:39:20 +0100
Subject: Code tweak and tidy

---
 extra.lua | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

(limited to 'extra.lua')

diff --git a/extra.lua b/extra.lua
index ebb216f..6dfd552 100644
--- a/extra.lua
+++ b/extra.lua
@@ -41,20 +41,22 @@ minetest.register_craft({
 })
 
 -- X pattern craft recipes (5x 'a' in X pattern gives 5 of 'b')
-for _,items in pairs({
+local cheat = {
 	{"default:cobble", "default:gravel"},
 	{"default:gravel", "default:dirt"},
 	{"default:dirt", "default:sand"},
 	{"default:ice", "default:snow"},
 	{"ethereal:dry_dirt", "default:desert_sand"},
-}) do
-	local a, b = unpack(items)
+}
+
+for n = 1, #cheat do
+
 	minetest.register_craft({
-		output = b.." 5",
+		output = cheat[n][2] .. " 5",
 		recipe = {
-			{a, "", a},
-			{"", a, ""},
-			{a, "", a},
+			{cheat[n][1], "", cheat[n][1]},
+			{"", cheat[n][1], ""},
+			{cheat[n][1], "", cheat[n][1]},
 		}
 	})
 end
-- 
cgit v1.2.3