diff options
author | DS <vorunbekannt75@web.de> | 2017-10-03 23:55:33 +0200 |
---|---|---|
committer | Vitaliy <silverunicorn2011@yandex.ru> | 2017-10-04 00:55:33 +0300 |
commit | 1f5601661e253c7ba4ea2c851772b14e2bd6cd3f (patch) | |
tree | 932a08f44c1aef4e467a4a5a8cb2a52c18157102 | |
parent | fa58607546dc6b27c88f9a54f4560fdb3a55c344 (diff) |
Do not reset conductor param2 on place (#364)
-rw-r--r-- | mesecons/services.lua | 3 |
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 |