mirror of
https://github.com/minetest-mods/technic.git
synced 2025-01-03 11:17:35 +01:00
Bugfixes with energy branch.
Conflicts: technic/machines/switching_station.lua
This commit is contained in:
parent
12d29c2139
commit
468d79db61
@ -30,6 +30,8 @@
|
|||||||
technic.DBG = 1
|
technic.DBG = 1
|
||||||
local dprint = technic.dprint
|
local dprint = technic.dprint
|
||||||
|
|
||||||
|
technic.networks = {}
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "technic:switching_station",
|
output = "technic:switching_station",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -184,7 +186,7 @@ minetest.register_abm({
|
|||||||
local name = minetest.get_node(pos1).name
|
local name = minetest.get_node(pos1).name
|
||||||
local tier = technic.get_cable_tier(name)
|
local tier = technic.get_cable_tier(name)
|
||||||
if tier then
|
if tier then
|
||||||
PR_nodes, RE_nodes, BA_nodes = get_network(pos1, tier)
|
PR_nodes, BA_nodes, RE_nodes = get_network(pos1, tier)
|
||||||
else
|
else
|
||||||
--dprint("Not connected to a network")
|
--dprint("Not connected to a network")
|
||||||
meta:set_string("infotext", "Switching Station - no network")
|
meta:set_string("infotext", "Switching Station - no network")
|
||||||
|
Loading…
Reference in New Issue
Block a user