summaryrefslogtreecommitdiff
path: root/mesecons_receiver
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2013-02-11 08:03:08 +0100
committerJeija <norrepli@gmail.com>2013-02-11 08:03:08 +0100
commit10ea3c971b21cd2232a542d330280007fa743fc4 (patch)
tree4f2a87666ee41be3dee68c001e47682ba6f5287e /mesecons_receiver
parent591e2d7cde9eda88ca85b71066dd9ed7f75f9a12 (diff)
parent7cc803b0d7ed3ff4f1b57d78b9523919a9fcd924 (diff)
downloadmesecons-10ea3c971b21cd2232a542d330280007fa743fc4.tar
mesecons-10ea3c971b21cd2232a542d330280007fa743fc4.tar.gz
mesecons-10ea3c971b21cd2232a542d330280007fa743fc4.tar.bz2
mesecons-10ea3c971b21cd2232a542d330280007fa743fc4.tar.xz
mesecons-10ea3c971b21cd2232a542d330280007fa743fc4.zip
Merge branch 'master' into luacontroller
Diffstat (limited to 'mesecons_receiver')
-rw-r--r--mesecons_receiver/init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesecons_receiver/init.lua b/mesecons_receiver/init.lua
index de2b535..24cc5c9 100644
--- a/mesecons_receiver/init.lua
+++ b/mesecons_receiver/init.lua
@@ -128,8 +128,10 @@ function mesecon:receiver_remove(rcpt_pos, dugnode)
local nn = minetest.env:get_node(pos)
if string.find(nn.name, "mesecons_receiver:receiver_") ~=nil then
minetest.env:dig_node(pos)
- minetest.env:place_node(pos, {name = "mesecons:wire_00000000_off"})
+ local node = {name = "mesecons:wire_00000000_off"}
+ minetest.env:add_node(pos, node)
mesecon:update_autoconnect(pos)
+ mesecon.on_placenode(pos, node)
end
end