summaryrefslogtreecommitdiff
path: root/mesecons_lightstone
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-12-11 18:15:44 +0100
committerJeija <norrepli@gmail.com>2012-12-11 18:15:44 +0100
commit5540fcbcb31eb32003fa0391113ed3b1dea25e47 (patch)
tree99b766538b5ed523ae7b8f26697752a2634dea9b /mesecons_lightstone
parenta55874b5d2d66b8fc2baa7c9514c41df68ec6049 (diff)
downloadmesecons-5540fcbcb31eb32003fa0391113ed3b1dea25e47.tar
mesecons-5540fcbcb31eb32003fa0391113ed3b1dea25e47.tar.gz
mesecons-5540fcbcb31eb32003fa0391113ed3b1dea25e47.tar.bz2
mesecons-5540fcbcb31eb32003fa0391113ed3b1dea25e47.tar.xz
mesecons-5540fcbcb31eb32003fa0391113ed3b1dea25e47.zip
Fix a bug reported here: http://minetest.net/forum/viewtopic.php?pid=56152#p56152
Diffstat (limited to 'mesecons_lightstone')
-rw-r--r--mesecons_lightstone/init.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/mesecons_lightstone/init.lua b/mesecons_lightstone/init.lua
index d8b523c..aa0c9b3 100644
--- a/mesecons_lightstone/init.lua
+++ b/mesecons_lightstone/init.lua
@@ -6,8 +6,7 @@ function mesecon:lightstone_add(name, base_item, texture_off, texture_on)
description=name.." Lightstone",
mesecons = {effector = {
action_on = function (pos, node)
- minetest.env:add_node(pos, {name="mesecons_lightstone:lightstone_" .. name .. "_on"})
- mesecon:receptor_on(pos)
+ mesecon:swap_node(pos, "mesecons_lightstone:lightstone_" .. name .. "_on")
end
}}
})
@@ -19,8 +18,7 @@ function mesecon:lightstone_add(name, base_item, texture_off, texture_on)
light_source = LIGHT_MAX-2,
mesecons = {effector = {
action_off = function (pos, node)
- minetest.env:add_node(pos, {name="mesecons_lightstone:lightstone_" .. name .. "_off"})
- mesecon:receptor_off(pos)
+ mesecon:swap_node(pos, "mesecons_lightstone:lightstone_" .. name .. "_off")
end
}}
})