mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
End portal frame: Bulk set nodes
This commit is contained in:
parent
9b8d6c4cec
commit
e569885fab
1 changed files with 3 additions and 1 deletions
|
@ -212,11 +212,13 @@ local function end_portal_area(pos, destroy)
|
||||||
else
|
else
|
||||||
name = "mcl_portals:portal_end"
|
name = "mcl_portals:portal_end"
|
||||||
end
|
end
|
||||||
|
local posses = {}
|
||||||
for x=pos.x, pos.x+SIZE-1 do
|
for x=pos.x, pos.x+SIZE-1 do
|
||||||
for z=pos.z, pos.z+SIZE-1 do
|
for z=pos.z, pos.z+SIZE-1 do
|
||||||
minetest.set_node({x=x,y=pos.y,z=z}, {name=name})
|
table.insert(posses, {x=x,y=pos.y,z=z})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
minetest.bulk_set_node(posses, {name=name})
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
|
|
Loading…
Reference in a new issue