mirror of
https://github.com/minetest-mods/digilines.git
synced 2024-12-25 02:00:19 +01:00
Allow for non-autoconnecting wires; only if digiline.wire.use_autoconnect is set, autoconnection will be used
This commit is contained in:
parent
2cf9e34a65
commit
190278bc78
@ -91,7 +91,8 @@ for zmy=0, 1 do
|
|||||||
{
|
{
|
||||||
wire =
|
wire =
|
||||||
{
|
{
|
||||||
basename = "digilines:wire_std_"
|
basename = "digilines:wire_std_",
|
||||||
|
use_autoconnect = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selection_box = {
|
selection_box = {
|
||||||
|
@ -45,6 +45,7 @@ function digiline:update_autoconnect(pos, secondcall)
|
|||||||
local digilinespec = minetest.registered_nodes[minetest.get_node(pos).name].digiline
|
local digilinespec = minetest.registered_nodes[minetest.get_node(pos).name].digiline
|
||||||
if not digilinespec then return nil end
|
if not digilinespec then return nil end
|
||||||
if not digilinespec.wire then return nil end
|
if not digilinespec.wire then return nil end
|
||||||
|
if not digilinespec.wire.use_autoconnect then return nil end
|
||||||
|
|
||||||
local zmg = digiline:rules_link_anydir(pos, zmpos)
|
local zmg = digiline:rules_link_anydir(pos, zmpos)
|
||||||
local zmymg = digiline:rules_link_anydir(pos, zmympos)
|
local zmymg = digiline:rules_link_anydir(pos, zmympos)
|
||||||
|
Loading…
Reference in New Issue
Block a user