mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-17 15:58:37 +01:00
Merge branch 'pandorabox' of github.com:pandorabox-io/technic into pandorabox
This commit is contained in:
commit
bcbdb116c8
@ -49,9 +49,7 @@ minetest.register_node("technic:switching_station",{
|
|||||||
technic.redundant_warn.poshash = nil
|
technic.redundant_warn.poshash = nil
|
||||||
end,
|
end,
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
minetest.forceload_free_block(pos)
|
|
||||||
pos.y = pos.y - 1
|
pos.y = pos.y - 1
|
||||||
minetest.forceload_free_block(pos)
|
|
||||||
local poshash = minetest.hash_node_position(pos)
|
local poshash = minetest.hash_node_position(pos)
|
||||||
technic.redundant_warn.poshash = nil
|
technic.redundant_warn.poshash = nil
|
||||||
end,
|
end,
|
||||||
@ -275,8 +273,6 @@ minetest.register_abm({
|
|||||||
|
|
||||||
--Disable if necessary
|
--Disable if necessary
|
||||||
if meta:get_int("active") ~= 1 then
|
if meta:get_int("active") ~= 1 then
|
||||||
minetest.forceload_free_block(pos)
|
|
||||||
minetest.forceload_free_block(pos1)
|
|
||||||
meta:set_string("infotext",S("%s Already Present"):format(machine_name))
|
meta:set_string("infotext",S("%s Already Present"):format(machine_name))
|
||||||
|
|
||||||
local poshash = minetest.hash_node_position(pos)
|
local poshash = minetest.hash_node_position(pos)
|
||||||
@ -291,15 +287,10 @@ 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
|
||||||
-- Forceload switching station
|
|
||||||
minetest.forceload_block(pos)
|
|
||||||
minetest.forceload_block(pos1)
|
|
||||||
PR_nodes, BA_nodes, RE_nodes = get_network(pos, pos1, tier)
|
PR_nodes, BA_nodes, RE_nodes = get_network(pos, pos1, tier)
|
||||||
else
|
else
|
||||||
--dprint("Not connected to a network")
|
--dprint("Not connected to a network")
|
||||||
meta:set_string("infotext", S("%s Has No Network"):format(machine_name))
|
meta:set_string("infotext", S("%s Has No Network"):format(machine_name))
|
||||||
minetest.forceload_free_block(pos)
|
|
||||||
minetest.forceload_free_block(pos1)
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -550,4 +541,3 @@ for tier, machines in pairs(technic.machines) do
|
|||||||
-- SPECIAL will not be traversed
|
-- SPECIAL will not be traversed
|
||||||
technic.register_machine(tier, "technic:switching_station", "SPECIAL")
|
technic.register_machine(tier, "technic:switching_station", "SPECIAL")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user