print statement removed, recipe bugfix, heat exchanger bugfix
This commit is contained in:
parent
2575976616
commit
4b6943de48
@ -114,7 +114,6 @@ local function charging(pos, mem, is_charging)
|
||||
end
|
||||
|
||||
local function glowing(pos, mem, should_glow)
|
||||
print("glowing", P2S(mem.win_pos), should_glow)
|
||||
if mem.win_pos then
|
||||
if should_glow then
|
||||
swap_node(mem.win_pos, "techage:glow_gravel")
|
||||
@ -138,10 +137,8 @@ local function formspec(self, pos, mem)
|
||||
end
|
||||
|
||||
local function can_start(pos, mem, state)
|
||||
print("can_start")
|
||||
if turbine_cmnd(pos, "power") then
|
||||
local radius = inlet_cmnd(pos, "radius")
|
||||
print("radius = "..radius)
|
||||
if radius then
|
||||
mem.capa_max = PWR_CAPA[tonumber(radius)] or 0
|
||||
local owner = M(pos):get_string("owner") or ""
|
||||
@ -152,7 +149,6 @@ local function can_start(pos, mem, state)
|
||||
end
|
||||
|
||||
local function start_node(pos, mem, state)
|
||||
print("start_node", P2S(pos))
|
||||
mem.running = true
|
||||
mem.delivered = 0
|
||||
mem.was_charging = true
|
||||
@ -178,7 +174,6 @@ local State = techage.NodeStates:new({
|
||||
})
|
||||
|
||||
local function node_timer(pos, elapsed)
|
||||
print("node_timer1")
|
||||
local mem = tubelib2.get_mem(pos)
|
||||
if mem.running and turbine_cmnd(pos, "power") then
|
||||
mem.capa = mem.capa or 0
|
||||
@ -292,7 +287,7 @@ minetest.register_node("techage:heatexchanger1", {
|
||||
description = S("TA4 Heat Exchanger 1"),
|
||||
tiles = {
|
||||
-- up, down, right, left, back, front
|
||||
"techage_hole_ta4.png",
|
||||
"techage_hole_ta4.png^techage_appl_arrow_white.png",
|
||||
"techage_filling_ta4.png^techage_frame_ta4.png",
|
||||
"techage_filling_ta4.png^techage_frameB_ta4.png^techage_appl_hole_biogas.png",
|
||||
"techage_filling_ta4.png^techage_frameB_ta4.png^techage_appl_hole_biogas.png",
|
||||
@ -325,7 +320,7 @@ techage.power.register_node({"techage:heatexchanger1"}, {
|
||||
power_network = Cable,
|
||||
})
|
||||
|
||||
Cable:add_secondary_node_names({"techage:heatexchanger1", "techage:heatexchanger3"})
|
||||
Pipe:add_secondary_node_names({"techage:heatexchanger1", "techage:heatexchanger3"})
|
||||
|
||||
-- for logical communication
|
||||
techage.register_node({"techage:heatexchanger1"}, {
|
||||
|
@ -135,7 +135,7 @@ techage.furnace.register_recipe({
|
||||
output = "basic_materials:concrete_block 4",
|
||||
recipe = {
|
||||
"basic_materials:wet_cement",
|
||||
"group:sand",
|
||||
"default:sand",
|
||||
"default:gravel",
|
||||
"techage:steelmat",
|
||||
},
|
||||
|
@ -32,7 +32,10 @@ local Pipe = tubelib2.Tube:new({
|
||||
})
|
||||
|
||||
Pipe:register_on_tube_update(function(node, pos, out_dir, peer_pos, peer_in_dir)
|
||||
minetest.registered_nodes[node.name].after_tube_update(node, pos, out_dir, peer_pos, peer_in_dir)
|
||||
local ndef = minetest.registered_nodes[node.name]
|
||||
if ndef and ndef.after_tube_update then
|
||||
minetest.registered_nodes[node.name].after_tube_update(node, pos, out_dir, peer_pos, peer_in_dir)
|
||||
end
|
||||
end)
|
||||
|
||||
techage.BiogasPipe = Pipe
|
||||
|
BIN
textures/techage_appl_arrow_white.png
Normal file
BIN
textures/techage_appl_arrow_white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 188 B |
Binary file not shown.
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 175 B |
Loading…
Reference in New Issue
Block a user