forked from Mirrorlandia_minetest/mesecons
Fix #73 - receiver wire drops down one node when connected button is dug.
This commit is contained in:
parent
ccb3430540
commit
4714c908ac
@ -128,8 +128,10 @@ function mesecon:receiver_remove(rcpt_pos, dugnode)
|
|||||||
local nn = minetest.env:get_node(pos)
|
local nn = minetest.env:get_node(pos)
|
||||||
if string.find(nn.name, "mesecons_receiver:receiver_") ~=nil then
|
if string.find(nn.name, "mesecons_receiver:receiver_") ~=nil then
|
||||||
minetest.env:dig_node(pos)
|
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:update_autoconnect(pos)
|
||||||
|
mesecon.on_placenode(pos, node)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user