From c92e8f796abbd261ef4e97c210c182665ac5b5ba Mon Sep 17 00:00:00 2001 From: gabriel1379 Date: Sat, 13 Apr 2024 21:17:57 +0200 Subject: [PATCH] Add local keyword to check function's local variable in compressor recipes --- technic/machines/register/compressor_recipes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/technic/machines/register/compressor_recipes.lua b/technic/machines/register/compressor_recipes.lua index ae40703..89dd437 100644 --- a/technic/machines/register/compressor_recipes.lua +++ b/technic/machines/register/compressor_recipes.lua @@ -11,7 +11,7 @@ end -- Function for cases where multiple mods exist with the same name, -- to check if we have the right one. local function is_right_mod(dependency) - is_right = true + local is_right = true if dependency == "nether" then is_right = minetest.registered_nodes["nether:brick_compressed"] ~= nil