Merge branch 'fix_power' into translation_rework
Some checks failed
Check & Release / lint (push) Has been cancelled
Some checks failed
Check & Release / lint (push) Has been cancelled
This commit is contained in:
commit
da588b4528
@ -93,7 +93,7 @@ minetest.register_node("technic:geothermal", {
|
|||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("infotext", S("Geothermal %s Generator"):format("LV"))
|
meta:set_string("infotext", S("Geothermal @1 Generator", "LV"))
|
||||||
meta:set_int("LV_EU_supply", 0)
|
meta:set_int("LV_EU_supply", 0)
|
||||||
end,
|
end,
|
||||||
technic_run = run,
|
technic_run = run,
|
||||||
|
@ -121,8 +121,10 @@ end
|
|||||||
-- Generic function to add found connected nodes to the right classification array
|
-- Generic function to add found connected nodes to the right classification array
|
||||||
-- !! IMPORTANT: register/cables.lua -> clear_networks() must be kept in sync
|
-- !! IMPORTANT: register/cables.lua -> clear_networks() must be kept in sync
|
||||||
local check_node_subp = function(network, pos, machines, sw_pos, from_below, network_id, queue)
|
local check_node_subp = function(network, pos, machines, sw_pos, from_below, network_id, queue)
|
||||||
|
--minetest.log('action', 'Check node: ' .. dump(pos))
|
||||||
technic.get_or_load_node(pos)
|
technic.get_or_load_node(pos)
|
||||||
local name = minetest.get_node(pos).name
|
local name = minetest.get_node(pos).name
|
||||||
|
minetest.log('action', 'Check node name: ' .. dump(network.tier))
|
||||||
|
|
||||||
if technic.is_tier_cable(name, network.tier) then
|
if technic.is_tier_cable(name, network.tier) then
|
||||||
add_cable_node(network.all_nodes, pos, network_id, queue)
|
add_cable_node(network.all_nodes, pos, network_id, queue)
|
||||||
@ -185,6 +187,7 @@ end
|
|||||||
|
|
||||||
local touch_nodes = function(list, tier)
|
local touch_nodes = function(list, tier)
|
||||||
for _, pos in ipairs(list) do
|
for _, pos in ipairs(list) do
|
||||||
|
--minetest.log("action", 'pos: ' .. dump(pos))
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_int(tier.."_EU_timeout", 2) -- Touch node
|
meta:set_int(tier.."_EU_timeout", 2) -- Touch node
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user