mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-03 16:50:37 +02:00
Fix local variable definition and access
This commit is contained in:
@ -46,16 +46,17 @@ end
|
||||
-- Clear recipes
|
||||
for _, craft_name in ipairs(crafts_to_clear) do
|
||||
local is_regular = string.sub(craft_name, 1, 7) ~= "nether:"
|
||||
local shaped_recipe = {}
|
||||
|
||||
if is_regular then
|
||||
-- Regular compression recipes use 2x2 shape.
|
||||
local shaped_recipe = {
|
||||
shaped_recipe = {
|
||||
{craft_name, craft_name},
|
||||
{craft_name, craft_name},
|
||||
}
|
||||
else
|
||||
-- Nether's compression recipes use 3x3 shape.
|
||||
local shaped_recipe = {
|
||||
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