diff options
-rw-r--r-- | mesecons_button/init.lua | 4 | ||||
-rw-r--r-- | mesecons_pressureplates/init.lua | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/mesecons_button/init.lua b/mesecons_button/init.lua index 0096df3..fbf7c0f 100644 --- a/mesecons_button/init.lua +++ b/mesecons_button/init.lua @@ -35,8 +35,8 @@ minetest.register_node("mesecons_button:button_on", { groups = {dig_immediate=2}, drop = 'mesecons_button:button_off', description = "Button", - after_dig_node = function(pos) - mesecon:receptor_off(pos, mesecon.button_get_rules(minetest.env:get_node(pos).param2)) + after_dig_node = function(pos, oldnode) + mesecon:receptor_off(pos, mesecon.button_get_rules(oldnode.param2)) end }) diff --git a/mesecons_pressureplates/init.lua b/mesecons_pressureplates/init.lua index 6b8778a..f257c8f 100644 --- a/mesecons_pressureplates/init.lua +++ b/mesecons_pressureplates/init.lua @@ -10,11 +10,11 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_off", { walkable = false, selection_box = { type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5}, + fixed = {-0.45, -0.5, -0.45, 0.45, -0.45, 0.45}, }, node_box = { type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5}, + fixed = {-0.45, -0.5, -0.45, 0.45, -0.45, 0.45}, }, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3}, description="Wood Pressure Plate", @@ -28,11 +28,11 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_on", { walkable = false, selection_box = { type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, -0.48, 0.5}, + fixed = {-0.45, -0.5, -0.45, 0.45, -0.48, 0.45}, }, node_box = { type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, -0.48, 0.5}, + fixed = {-0.45, -0.5, -0.45, 0.45, -0.48, 0.45}, }, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3}, drop='"mesecons_pressureplates:pressure_plate_wood_off" 1', |