Initialize pressure plates in generate structures

This commit is contained in:
Wuzzy 2017-09-14 03:41:06 +02:00
parent f0adddac12
commit 7f5c051b5d

View file

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