From 94dfd63e147716a3f1cce5e8abff05662afbbc0f Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 22 Jan 2018 20:04:19 +0100 Subject: [PATCH] Redstone torch: Use set_node instead of swap_node --- mods/ITEMS/REDSTONE/mesecons_torch/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ITEMS/REDSTONE/mesecons_torch/init.lua b/mods/ITEMS/REDSTONE/mesecons_torch/init.lua index 236a7a116..fe5e3949f 100644 --- a/mods/ITEMS/REDSTONE/mesecons_torch/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_torch/init.lua @@ -140,17 +140,17 @@ minetest.register_abm({ if is_powered then if node.name == "mesecons_torch:mesecon_torch_on" then - minetest.swap_node(pos, {name="mesecons_torch:mesecon_torch_off", param2=node.param2}) + minetest.set_node(pos, {name="mesecons_torch:mesecon_torch_off", param2=node.param2}) mesecon.receptor_off(pos, torch_get_output_rules(node)) elseif node.name == "mesecons_torch:mesecon_torch_on_wall" then - minetest.swap_node(pos, {name="mesecons_torch:mesecon_torch_off_wall", param2=node.param2}) + minetest.set_node(pos, {name="mesecons_torch:mesecon_torch_off_wall", param2=node.param2}) mesecon.receptor_off(pos, torch_get_output_rules(node)) end elseif node.name == "mesecons_torch:mesecon_torch_off" then - minetest.swap_node(pos, {name="mesecons_torch:mesecon_torch_on", param2=node.param2}) + minetest.set_node(pos, {name="mesecons_torch:mesecon_torch_on", param2=node.param2}) mesecon.receptor_on(pos, torch_get_output_rules(node)) elseif node.name == "mesecons_torch:mesecon_torch_off_wall" then - minetest.swap_node(pos, {name="mesecons_torch:mesecon_torch_on_wall", param2=node.param2}) + minetest.set_node(pos, {name="mesecons_torch:mesecon_torch_on_wall", param2=node.param2}) mesecon.receptor_on(pos, torch_get_output_rules(node)) end end