mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-03 08:40:36 +02:00
Make variables local
This commit is contained in:
@ -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},
|
||||
|
Reference in New Issue
Block a user