summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesecons/services.lua3
1 files changed, 2 insertions, 1 deletions
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