From e2bbc9df5c680a714a5ac2578f852947eacd3d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Douglas=20da=20Silva=20Souza?= Date: Fri, 8 Mar 2024 22:36:16 +0000 Subject: [PATCH] Global definition removed --- mods/ITEMS/mcl_hollow_logs/recipes.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ITEMS/mcl_hollow_logs/recipes.lua b/mods/ITEMS/mcl_hollow_logs/recipes.lua index 42e350354..155d790c4 100644 --- a/mods/ITEMS/mcl_hollow_logs/recipes.lua +++ b/mods/ITEMS/mcl_hollow_logs/recipes.lua @@ -1,6 +1,6 @@ -for i = 1, #logs do +for i = 1, #mcl_hollow_logs.logs do local mod, material, stripped_material - local name = logs[i][1] + local name = mcl_hollow_logs.logs[i][1] if name:find("cherry") then mod = "mcl_cherry_blossom:" @@ -18,7 +18,7 @@ for i = 1, #logs do end minetest.register_craft({ - output = "mcl_hollow_logs:"..logs[i][1].."_hollow 4", + output = "mcl_hollow_logs:"..name.."_hollow 4", recipe = { {"", material, ""}, {material, "", material}, @@ -27,7 +27,7 @@ for i = 1, #logs do }) minetest.register_craft({ - output = "mcl_hollow_logs:stripped_"..logs[i][1].."_hollow 4", + output = "mcl_hollow_logs:stripped_"..name.."_hollow 4", recipe = { {"", stripped_material, ""}, {stripped_material, "", stripped_material},