From b1364dd921e15653700f4c434b45f70279a6f59c Mon Sep 17 00:00:00 2001 From: gabriel1379 Date: Fri, 19 Apr 2024 07:16:15 +0200 Subject: [PATCH] Make variables local --- technic/machines/register/compressor_recipes.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/technic/machines/register/compressor_recipes.lua b/technic/machines/register/compressor_recipes.lua index 2c405dd..777499f 100644 --- a/technic/machines/register/compressor_recipes.lua +++ b/technic/machines/register/compressor_recipes.lua @@ -45,17 +45,17 @@ end -- Clear recipes for _, craft_name in ipairs(crafts_to_clear) do - is_regular = string.sub(craft_name, 1, 7) ~= "nether:" + local is_regular = string.sub(craft_name, 1, 7) ~= "nether:" if is_regular then -- Regular compression recipes use 2x2 shape. - shaped_recipe = { + local shaped_recipe = { {craft_name, craft_name}, {craft_name, craft_name}, } else -- Nether's compression recipes use 3x3 shape. - shaped_recipe = { + local shaped_recipe = { {craft_name, craft_name, craft_name}, {craft_name, craft_name, craft_name}, {craft_name, craft_name, craft_name},