summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <jeija@mesecons.net>2014-04-24 10:46:58 +0200
committerJeija <jeija@mesecons.net>2014-04-24 10:46:58 +0200
commit190278bc786d49c56c91e1feda6feee70c5e8e3b (patch)
treeaa70494968a3263649f29473294217e773c38100
parent2cf9e34a6589ade1fc1a3756b33416622715d005 (diff)
Allow for non-autoconnecting wires; only if digiline.wire.use_autoconnect is set, autoconnection will be used
-rw-r--r--digilines/wire_std.lua3
-rw-r--r--digilines/wires_common.lua1
2 files changed, 3 insertions, 1 deletions
diff --git a/digilines/wire_std.lua b/digilines/wire_std.lua
index 32645e9..71bbd0f 100644
--- a/digilines/wire_std.lua
+++ b/digilines/wire_std.lua
@@ -91,7 +91,8 @@ for zmy=0, 1 do
{
wire =
{
- basename = "digilines:wire_std_"
+ basename = "digilines:wire_std_",
+ use_autoconnect = true
}
},
selection_box = {
diff --git a/digilines/wires_common.lua b/digilines/wires_common.lua
index eac28d9..087ceea 100644
--- a/digilines/wires_common.lua
+++ b/digilines/wires_common.lua
@@ -45,6 +45,7 @@ function digiline:update_autoconnect(pos, secondcall)
local digilinespec = minetest.registered_nodes[minetest.get_node(pos).name].digiline
if not digilinespec 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 zmymg = digiline:rules_link_anydir(pos, zmympos)