From 6e9316fde8fd14ad3bda0f19a58024045b9870d1 Mon Sep 17 00:00:00 2001 From: Jeija Date: Sat, 28 Jan 2012 07:25:34 +0100 Subject: [PATCH] Fix switch rotating bug --- jeija/switch.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeija/switch.lua b/jeija/switch.lua index 8c784b0..553c95f 100644 --- a/jeija/switch.lua +++ b/jeija/switch.lua @@ -18,12 +18,12 @@ mesecon:add_receptor_node_off("jeija:mesecon_switch_off") minetest.register_on_punchnode(function(pos, node, puncher) if node.name == "jeija:mesecon_switch_on" then - minetest.env:add_node(pos, {name="jeija:mesecon_switch_off", param1=node.param1}) + minetest.env:add_node(pos, {name="jeija:mesecon_switch_off", param2=node.param2}) nodeupdate(pos) mesecon:receptor_off(pos) end if node.name == "jeija:mesecon_switch_off" then - minetest.env:add_node(pos, {name="jeija:mesecon_switch_on", param1=node.param1}) + minetest.env:add_node(pos, {name="jeija:mesecon_switch_on", param2=node.param2}) nodeupdate(pos) mesecon:receptor_on(pos) end