summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-09-06 18:30:03 +0200
committerShadowNinja <noreply@gmail.com>2013-10-04 10:50:51 -0400
commit468d79db617c663043dba26d2be2d738089725f9 (patch)
tree3ba7fa1b47ead887987a292207916014924bc107
parent12d29c213956f140f9930a5ea78c8a9f9284d798 (diff)
Bugfixes with energy branch.
Conflicts: technic/machines/switching_station.lua
-rw-r--r--technic/machines/switching_station.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/technic/machines/switching_station.lua b/technic/machines/switching_station.lua
index 449b4c9..843006f 100644
--- a/technic/machines/switching_station.lua
+++ b/technic/machines/switching_station.lua
@@ -30,6 +30,8 @@
technic.DBG = 1
local dprint = technic.dprint
+technic.networks = {}
+
minetest.register_craft({
output = "technic:switching_station",
recipe = {
@@ -184,7 +186,7 @@ minetest.register_abm({
local name = minetest.get_node(pos1).name
local tier = technic.get_cable_tier(name)
if tier then
- PR_nodes, RE_nodes, BA_nodes = get_network(pos1, tier)
+ PR_nodes, BA_nodes, RE_nodes = get_network(pos1, tier)
else
--dprint("Not connected to a network")
meta:set_string("infotext", "Switching Station - no network")