summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-12-15 21:21:54 +0100
committerJeija <norrepli@gmail.com>2012-12-15 21:21:54 +0100
commit18731cbc8acb4c5503a8f69450cf75c9f109e595 (patch)
treec7934e70af0877e8bd406453fbf146fed3ec2dd2
parent44dc1a128cd6574b53ae68c33a6d2583eb878087 (diff)
downloadmesecons-18731cbc8acb4c5503a8f69450cf75c9f109e595.tar
mesecons-18731cbc8acb4c5503a8f69450cf75c9f109e595.tar.gz
mesecons-18731cbc8acb4c5503a8f69450cf75c9f109e595.tar.bz2
mesecons-18731cbc8acb4c5503a8f69450cf75c9f109e595.tar.xz
mesecons-18731cbc8acb4c5503a8f69450cf75c9f109e595.zip
Bugfix, param2 for conductors
-rw-r--r--mesecons/internal.lua4
1 files 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)