From 18731cbc8acb4c5503a8f69450cf75c9f109e595 Mon Sep 17 00:00:00 2001 From: Jeija Date: Sat, 15 Dec 2012 21:21:54 +0100 Subject: [PATCH] Bugfix, param2 for conductors --- mesecons/internal.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesecons/internal.lua b/mesecons/internal.lua index ea21522..419a337 100644 --- a/mesecons/internal.lua +++ b/mesecons/internal.lua @@ -288,7 +288,7 @@ function mesecon:turnon(pos) if mesecon:is_conductor_off(node.name) then local rules = mesecon:conductor_get_rules(node) - minetest.env:add_node(pos, {name = mesecon:get_conductor_on(node.name)}) + minetest.env:add_node(pos, {name = mesecon:get_conductor_on(node.name), param2 = node.param2}) for _, rule in ipairs(rules) do local np = mesecon:addPosRule(pos, rule) @@ -312,7 +312,7 @@ function mesecon:turnoff(pos) if mesecon:is_conductor_on(node.name) then local rules = mesecon:conductor_get_rules(node) - minetest.env:add_node(pos, {name = mesecon:get_conductor_off(node.name)}) + minetest.env:add_node(pos, {name = mesecon:get_conductor_off(node.name), param2 = node.param2}) for _, rule in ipairs(rules) do local np = mesecon:addPosRule(pos, rule)