scan around the distribution node, if any, for connection targets
parent
d31c5590fe
commit
38eb8b8f59
10
simple.lua
10
simple.lua
|
@ -163,10 +163,6 @@ local function check_and_place(itemstack, placer, pointed_thing, pole, light, pa
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if distributor_node and needs_digiline_wire then
|
|
||||||
minetest.set_node(pos0, { name = distributor_node })
|
|
||||||
end
|
|
||||||
|
|
||||||
if controls.sneak then
|
if controls.sneak then
|
||||||
minetest.set_node(pos1, { name = streetlights.concrete })
|
minetest.set_node(pos1, { name = streetlights.concrete })
|
||||||
end
|
end
|
||||||
|
@ -187,6 +183,12 @@ local function check_and_place(itemstack, placer, pointed_thing, pole, light, pa
|
||||||
if needs_digiline_wire and ilights.player_channels[playername] then
|
if needs_digiline_wire and ilights.player_channels[playername] then
|
||||||
minetest.get_meta(pos4):set_string("channel", ilights.player_channels[playername])
|
minetest.get_meta(pos4):set_string("channel", ilights.player_channels[playername])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if distributor_node and needs_digiline_wire then
|
||||||
|
minetest.set_node(pos0, { name = distributor_node })
|
||||||
|
digilines.update_autoconnect(pos0)
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local poles_tab = {
|
local poles_tab = {
|
||||||
|
|
Loading…
Reference in New Issue