mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 11:17:30 +01:00
End portal frame: Bulk set nodes
This commit is contained in:
parent
9b8d6c4cec
commit
e569885fab
@ -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 New Issue
Block a user