From 6731db14e580ddccace186f5a8ac03dad0661e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1briel?= <38207624+gabriel1379@users.noreply.github.com> Date: Sun, 7 Jul 2024 18:53:15 +0200 Subject: [PATCH] Add compressor recipes for nether racks (#644) --- technic/machines/register/compressor_recipes.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/technic/machines/register/compressor_recipes.lua b/technic/machines/register/compressor_recipes.lua index 6acee20..4cad127 100644 --- a/technic/machines/register/compressor_recipes.lua +++ b/technic/machines/register/compressor_recipes.lua @@ -30,6 +30,8 @@ local dependent_crafts_to_clear = { nether = { "nether:brick", "nether:brick_compressed", + "nether:rack", + "nether:rack_deep", }, } @@ -45,17 +47,16 @@ end -- Clear recipes for _, craft_name in ipairs(crafts_to_clear) do - local is_regular = string.sub(craft_name, 1, 7) ~= "nether:" + -- Regular bricks are 2x2 shaped, nether bricks are 3x3 shaped (irregular) + local is_regular = string.sub(craft_name, 1, 12) ~= "nether:brick" local shaped_recipe if is_regular then - -- Regular compression recipes use 2x2 shape. shaped_recipe = { {craft_name, craft_name}, {craft_name, craft_name}, } else - -- Nether's compression recipes use 3x3 shape. shaped_recipe = { {craft_name, craft_name, craft_name}, {craft_name, craft_name, craft_name}, @@ -99,6 +100,8 @@ local dependent_recipes = { nether = { {"nether:brick 9", "nether:brick_compressed"}, {"nether:brick_compressed 9", "nether:nether_lump"}, + {"nether:rack", "nether:brick",}, + {"nether:rack_deep", "nether:brick_deep"}, }, }