From 28e028aa654f562efaad9a45769540a52b09b090 Mon Sep 17 00:00:00 2001 From: kno10 Date: Fri, 6 Dec 2024 22:20:14 +0100 Subject: [PATCH] add missing 'local' (#4733) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4733 Reviewed-by: Mikita Wiśniewski Co-authored-by: kno10 Co-committed-by: kno10 --- mods/MAPGEN/mcl_structures/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_structures/api.lua b/mods/MAPGEN/mcl_structures/api.lua index a76140e61..14aa040c3 100644 --- a/mods/MAPGEN/mcl_structures/api.lua +++ b/mods/MAPGEN/mcl_structures/api.lua @@ -329,7 +329,7 @@ local EMPTY_SCHEMATIC = { size = {x = 0, y = 0, z = 0}, data = { } } function mcl_structures.register_structure(name,def,nospawn) --nospawn means it will not be placed by mapgen decoration mechanism if mcl_structures.is_disabled(name) then return end - flags = def.flags or "place_center_x, place_center_z, force_placement" + local flags = def.flags or "place_center_x, place_center_z, force_placement" def.name = name if not nospawn and def.place_on then minetest.register_on_mods_loaded(function() --make sure all previous decorations and biomes have been registered