0
0
Fork 0

End portal frame: Bulk set nodes

This commit is contained in:
Wuzzy 2020-01-06 16:51:40 +01:00
parent 9b8d6c4cec
commit e569885fab
1 changed files with 3 additions and 1 deletions

View File

@ -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({