mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 12:01:06 +01:00
Queue is not used anywhere (#4608)
Dead code. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4608 Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com> Co-authored-by: kno10 <erich.schubert@gmail.com> Co-committed-by: kno10 <erich.schubert@gmail.com>
This commit is contained in:
parent
a3cc105fa1
commit
d2b96b6142
1 changed files with 0 additions and 12 deletions
|
@ -1,6 +1,5 @@
|
||||||
mcl_structures.registered_structures = {}
|
mcl_structures.registered_structures = {}
|
||||||
|
|
||||||
local place_queue = {}
|
|
||||||
local disabled_structures = minetest.settings:get("mcl_disabled_structures")
|
local disabled_structures = minetest.settings:get("mcl_disabled_structures")
|
||||||
if disabled_structures then disabled_structures = disabled_structures:split(",")
|
if disabled_structures then disabled_structures = disabled_structures:split(",")
|
||||||
else disabled_structures = {} end
|
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})
|
minetest.bulk_set_node(stone,{name=node_stone})
|
||||||
end
|
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)
|
function mcl_structures.spawn_mobs(mob,spawnon,p1,p2,pr,n,water)
|
||||||
n = n or 1
|
n = n or 1
|
||||||
local sp = {}
|
local sp = {}
|
||||||
|
|
Loading…
Reference in a new issue