From 7f5c051b5dc4b5ffcb79f2baf843c1679b741086 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 14 Sep 2017 03:41:06 +0200 Subject: [PATCH] Initialize pressure plates in generate structures --- mods/MAPGEN/mcl_structures/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mods/MAPGEN/mcl_structures/init.lua b/mods/MAPGEN/mcl_structures/init.lua index 415e6619d6..91ecabea5c 100644 --- a/mods/MAPGEN/mcl_structures/init.lua +++ b/mods/MAPGEN/mcl_structures/init.lua @@ -182,6 +182,12 @@ mcl_structures.generate_desert_temple = function(pos) 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 end