From e2ec7b5b04f5f14092205b26594124d40de2f1ec Mon Sep 17 00:00:00 2001 From: Jeija Date: Sat, 22 Dec 2012 23:39:17 +0100 Subject: Fix pressure plates (forgot to add mesecons field to some of the nodedefs) --- mesecons_pressureplates/init.lua | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/mesecons_pressureplates/init.lua b/mesecons_pressureplates/init.lua index 2e88d2f..78389a4 100644 --- a/mesecons_pressureplates/init.lua +++ b/mesecons_pressureplates/init.lua @@ -16,7 +16,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_off", { type = "fixed", fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, }, - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3, mesecon = 2}, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3}, description="Wood Pressure Plate", on_timer = function(pos, elapsed) @@ -30,7 +30,9 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_off", { end return true end, - + mesecons = {receptor = { + state = mesecon.state.off + }}, on_construct = function(pos) minetest.env:get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL) end, @@ -50,7 +52,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_on", { type = "fixed", fixed = { -7/16, -8/16, -7/16, 7/16, -31/64, 7/16 }, }, - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1, mesecon = 2}, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1}, drop='"mesecons_pressureplates:pressure_plate_wood_off" 1', on_timer = function(pos, elapsed) @@ -61,7 +63,9 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_on", { end return true end, - + mesecons = {receptor = { + state = mesecon.state.on + }}, on_construct = function(pos) minetest.env:get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL) end, @@ -106,14 +110,12 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_off", { end return true end, - + mesecons = {receptor = { + state = mesecon.state.off + }}, on_construct = function(pos) minetest.env:get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL) end, - - mesecons = {receptor = { - state = mesecon.state.off - }} }) minetest.register_node("mesecons_pressureplates:pressure_plate_stone_on", { @@ -141,14 +143,12 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_on", { end return true end, - + mesecons = {receptor = { + state = mesecon.state.on + }}, on_construct = function(pos) minetest.env:get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL) end, - - mesecons = {receptor = { - state = mesecon.state.off - }} }) minetest.register_craft({ -- cgit v1.2.3