mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-12-01 00:03:02 +00:00
Initialize pressure plates in generate structures
This commit is contained in:
parent
f0adddac12
commit
7f5c051b5d
1 changed files with 6 additions and 0 deletions
|
@ -182,6 +182,12 @@ mcl_structures.generate_desert_temple = function(pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Initialize pressure plates
|
||||||
|
local pplates = minetest.find_nodes_in_area({x=newpos.x-size.x, y=newpos.y, z=newpos.z-size.z}, vector.add(newpos, size), "mesecons_pressureplates:pressure_plate_stone_off")
|
||||||
|
for p=1, #pplates do
|
||||||
|
minetest.registered_nodes["mesecons_pressureplates:pressure_plate_stone_off"].on_construct(pplates[p])
|
||||||
|
end
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue