diff options
| author | Jeija <norrepli@gmail.com> | 2012-01-28 07:25:34 +0100 | 
|---|---|---|
| committer | Jeija <norrepli@gmail.com> | 2012-01-28 07:25:34 +0100 | 
| commit | 6e9316fde8fd14ad3bda0f19a58024045b9870d1 (patch) | |
| tree | 08e2ae7a457da1046bab2945e61af1e67da7129a /jeija | |
| parent | 823d50ff2efa2294f75350020dbc4d6067cbc0b6 (diff) | |
Fix switch rotating bug
Diffstat (limited to 'jeija')
| -rw-r--r-- | jeija/switch.lua | 4 | 
1 files 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  | 
