From 1f5601661e253c7ba4ea2c851772b14e2bd6cd3f Mon Sep 17 00:00:00 2001 From: DS Date: Tue, 3 Oct 2017 23:55:33 +0200 Subject: [PATCH] Do not reset conductor param2 on place (#364) --- mesecons/services.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesecons/services.lua b/mesecons/services.lua index 1e12de0..831f6f3 100644 --- a/mesecons/services.lua +++ b/mesecons/services.lua @@ -21,7 +21,8 @@ mesecon.on_placenode = function(pos, node) end --mesecon.receptor_on (pos, mesecon.conductor_get_rules(node)) elseif mesecon.is_conductor_on(node) then - minetest.swap_node(pos, {name = mesecon.get_conductor_off(node)}) + node.name = mesecon.get_conductor_off(node) + minetest.swap_node(pos, node) end end