From d2b96b6142748c57ef3df44443432ae41ee20e23 Mon Sep 17 00:00:00 2001 From: kno10 Date: Fri, 30 Aug 2024 18:20:38 +0200 Subject: [PATCH] Queue is not used anywhere (#4608) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dead code. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4608 Reviewed-by: Mikita Wiśniewski Co-authored-by: kno10 Co-committed-by: kno10 --- mods/MAPGEN/mcl_structures/api.lua | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/mods/MAPGEN/mcl_structures/api.lua b/mods/MAPGEN/mcl_structures/api.lua index cf47b4e30..02f96a1b3 100644 --- a/mods/MAPGEN/mcl_structures/api.lua +++ b/mods/MAPGEN/mcl_structures/api.lua @@ -1,6 +1,5 @@ mcl_structures.registered_structures = {} -local place_queue = {} local disabled_structures = minetest.settings:get("mcl_disabled_structures") if disabled_structures then disabled_structures = disabled_structures:split(",") else disabled_structures = {} end @@ -216,17 +215,6 @@ local function foundation(ground_p1,ground_p2,pos,sidelen) minetest.bulk_set_node(stone,{name=node_stone}) end -local function process_queue() - if #place_queue < 1 then return end - local s = table.remove(place_queue) - mcl_structures.place_schematic(s.pos, s.file, s.rot, nil, true, "place_center_x,place_center_z",function(s) - if s.after_place then - s.after_place(s.pos,s.def,s.pr) - end - end,s.pr) - minetest.after(0.5,process_queue) -end - function mcl_structures.spawn_mobs(mob,spawnon,p1,p2,pr,n,water) n = n or 1 local sp = {}