From f22946dc76ff05187e7ff0e0a6cbb2ab04ac9743 Mon Sep 17 00:00:00 2001
From: teknomunk <teknomunk@protonmail.com>
Date: Sun, 9 Feb 2025 17:11:24 +0100
Subject: [PATCH] Fix the deepslate cobble->polished->bricks->tiles craft
 recipes (#4918)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4918
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: teknomunk <teknomunk@protonmail.com>
Co-committed-by: teknomunk <teknomunk@protonmail.com>
---
 mods/ITEMS/mcl_deepslate/init.lua | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/mods/ITEMS/mcl_deepslate/init.lua b/mods/ITEMS/mcl_deepslate/init.lua
index d8a0d7295..2ae514e42 100644
--- a/mods/ITEMS/mcl_deepslate/init.lua
+++ b/mods/ITEMS/mcl_deepslate/init.lua
@@ -218,6 +218,7 @@ local function register_deepslate_variant(item, texture, desc, longdesc, stair,
 end
 
 local deepslate_variants = {
+	-- Do not reorder the below. Doing so will break the cobbled->polished->bricks->tiles craft recipes.
 	{ "cobbled", "cobbled_deepslate",
 		S("Cobbled Deepslate"), S("Cobbled deepslate is a stone variant that functions similar to cobblestone or blackstone."),
 		S("Cobbled Deepslate Stairs"), S("Cobbled Deepslate Slab"), S("Double Cobbled Deepslate Slab"), S("Cobbled Deepslate Wall"),
@@ -230,14 +231,16 @@ local deepslate_variants = {
 		S("Deepslate Bricks"), S("Deepslate bricks are the brick version of deepslate."),
 		S("Deepslate Bricks Stairs"), S("Deepslate Bricks Slab"), S("Double Deepslate Bricks Slab"), S("Deepslate Bricks Wall"),
 	},
-	{ "bricks_cracked", "cracked_deepslate_bricks",
-		S("Cracked Deepslate Bricks"), S("Cracked deepslate bricks are a cracked brick version of deepslate."),
-		nil, nil, nil, nil,
-	},
 	{ "tiles", "deepslate_tiles",
 		S("Deepslate Tiles"), S("Deepslate tiles are a decorative variant of deepslate."),
 		S("Deepslate Tiles Stairs"), S("Deepslate Tiles Slab"), S("Double Deepslate Tiles Slab"), S("Deepslate Tiles Wall"),
 	},
+	-- Do not reorder the above. Doing so will break the cobbled->polished->bricks->tiles craft recipes.
+
+	{ "bricks_cracked", "cracked_deepslate_bricks",
+		S("Cracked Deepslate Bricks"), S("Cracked deepslate bricks are a cracked brick version of deepslate."),
+		nil, nil, nil, nil,
+	},
 	{ "tiles_cracked", "cracked_deepslate_tiles",
 		S("Cracked Deepslate Tiles"), S("Cracked deepslate tiles are a cracked decorative variant of deepslate."),
 		nil, nil, nil, nil,