diff --git a/basic_machines/autocrafter.lua b/basic_machines/autocrafter.lua index b8d29ee..4f6fd85 100644 --- a/basic_machines/autocrafter.lua +++ b/basic_machines/autocrafter.lua @@ -430,3 +430,9 @@ minetest.register_craft({ }, }) +local Cable = techage.ElectricCable +local power = networks.power + +techage.register_node_for_v1_transition({"techage:ta3_autocrafter_pas"}, function(pos, node) + power.update_network(pos, nil, Cable) +end) \ No newline at end of file diff --git a/basic_machines/concentrator.lua b/basic_machines/concentrator.lua index b7d5466..2d5217c 100644 --- a/basic_machines/concentrator.lua +++ b/basic_machines/concentrator.lua @@ -39,6 +39,7 @@ local names = networks.register_junction("techage:concentrator", 2/8, Boxes, Tub "techage_tube_junction.png^techage_appl_arrow2.png^[transformR270", }, paramtype2 = "facedir", -- important! + use_texture_alpha = techage.CLIP, groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, techage_trowel = 1}, sounds = default.node_sound_defaults(), @@ -77,6 +78,7 @@ names = networks.register_junction("techage:ta4_concentrator", 2/8, Boxes, Tube, "techage_tubeta4_junction.png^techage_appl_arrow2.png^[transformR270", }, paramtype2 = "facedir", -- important! + use_texture_alpha = techage.CLIP, groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, techage_trowel = 1}, sounds = default.node_sound_defaults(), diff --git a/liquids/liquid_pipe.lua b/liquids/liquid_pipe.lua index daf667c..9f485ce 100644 --- a/liquids/liquid_pipe.lua +++ b/liquids/liquid_pipe.lua @@ -159,7 +159,7 @@ local Boxes = { local names = networks.register_junction("techage:ta3_junctionpipe", 1/8, Boxes, Pipe, { description = S("TA Junction Pipe"), tiles = {"techage_gaspipe_junction.png"}, - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, is_ground_content = false, groups = {crumbly = 2, cracky = 2, snappy = 2, techage_trowel = 1}, sounds = default.node_sound_metal_defaults(), diff --git a/oil/reboiler.lua b/oil/reboiler.lua index 8abe0b6..816d976 100644 --- a/oil/reboiler.lua +++ b/oil/reboiler.lua @@ -141,7 +141,7 @@ local function after_place_node(pos) local nvm = techage.get_nvm(pos) new_state(pos, nvm, techage.STOPPED) Pipe:after_place_node(pos) - Cable.after_place_node(pos) + Cable:after_place_node(pos) end local function after_dig_node(pos, oldnode) diff --git a/power/electric_cable.lua b/power/electric_cable.lua index a32634c..5e87dca 100644 --- a/power/electric_cable.lua +++ b/power/electric_cable.lua @@ -42,7 +42,6 @@ local Cable = tubelib2.Tube:new({ elseif not networks.hidden_name(pos) then minetest.swap_node(pos, {name = "techage:electric_cable"..tube_type, param2 = param2 % 32}) end - print("param2", name, param2) M(pos):set_int("netw_param2", param2) end, }) diff --git a/power/junctionbox.lua b/power/junctionbox.lua index 7f40f0a..59f4be2 100644 --- a/power/junctionbox.lua +++ b/power/junctionbox.lua @@ -32,7 +32,7 @@ local Boxes = { local names = networks.register_junction("techage:electric_junction", 2/8, Boxes, Cable, { description = S("TA Electric Junction Box"), tiles = {"techage_electric_junction.png"}, - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, is_ground_content = false, groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, techage_trowel = 1}, sounds = default.node_sound_defaults(), diff --git a/power/powerswitchbox.lua b/power/powerswitchbox.lua index 763a6e5..523c294 100644 --- a/power/powerswitchbox.lua +++ b/power/powerswitchbox.lua @@ -91,7 +91,7 @@ minetest.register_node("techage:powerswitch_box_on", { end, paramtype2 = "facedir", on_rotate = screwdriver.disallow, - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, groups = {choppy=2, cracky=2, crumbly=2, techage_trowel = 1}, @@ -128,7 +128,7 @@ minetest.register_node("techage:powerswitch_box_off", { end, paramtype2 = "facedir", on_rotate = screwdriver.disallow, - use_texture_alpha = "clip", + use_texture_alpha = techage.CLIP, sunlight_propagates = true, is_ground_content = false, drop = "techage:powerswitch_box_on",