From e1ef59e86bc65e273ee3daaa65bb551d6ac59881 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Sat, 5 Jul 2025 15:30:12 +0200 Subject: [PATCH] Fix pipe connections (part 1) --- .../prototypes/Bio_Farm/entities.lua | 10 +++++----- .../prototypes/Bio_Fuel/entities.lua | 16 ++++++++-------- .../prototypes/Bio_Garden/entities.lua | 2 +- .../prototypes/Bio_Solar_Farm/entities.lua | 8 ++++---- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Bio_Industries_2/prototypes/Bio_Farm/entities.lua b/Bio_Industries_2/prototypes/Bio_Farm/entities.lua index e54299c..f28313e 100644 --- a/Bio_Industries_2/prototypes/Bio_Farm/entities.lua +++ b/Bio_Industries_2/prototypes/Bio_Farm/entities.lua @@ -184,7 +184,7 @@ data:extend({ pipe_covers = pipecoverspictures(), base_area = 10, base_level = -1, - pipe_connections = {{ type = "input", position = {-1, -5} }} + pipe_connections = {{ flow_direction = "input", direction = defines.direction.north, position = {-1, -5} }} }, { production_type = "input", @@ -192,7 +192,7 @@ data:extend({ pipe_covers = pipecoverspictures(), base_area = 10, base_level = -1, - pipe_connections = {{ type = "input", position = {1, -5} }} + pipe_connections = {{ flow_direction = "input", direction = defines.direction.north, position = {1, -5} }} }, off_when_no_fluid_recipe = true }, @@ -468,7 +468,7 @@ data:extend({ pipe_covers = pipecoverspictures(), base_area = 10, base_level = -1, - pipe_connections = {{ type = "input", position = {0, -2} }} + pipe_connections = {{ flow_direction = "input", direction = defines.direction.north, position = {0, -2} }} }, }, module_specification = { @@ -1052,7 +1052,7 @@ data:extend({ pipe_covers = pipecoverspictures(), base_area = 10, base_level = -1, - pipe_connections = {{ type = "input", position = {-1, -5} }} + pipe_connections = {{ flow_direction = "input", direction = defines.direction.north, position = {-1, -5} }} }, { production_type = "input", @@ -1060,7 +1060,7 @@ data:extend({ pipe_covers = pipecoverspictures(), base_area = 10, base_level = -1, - pipe_connections = {{ type = "input", position = {1, -5} }} + pipe_connections = {{ flow_direction = "input", direction = defines.direction.north, position = {1, -5} }} }, off_when_no_fluid_recipe = true }, diff --git a/Bio_Industries_2/prototypes/Bio_Fuel/entities.lua b/Bio_Industries_2/prototypes/Bio_Fuel/entities.lua index f596f0c..39af0a7 100644 --- a/Bio_Industries_2/prototypes/Bio_Fuel/entities.lua +++ b/Bio_Industries_2/prototypes/Bio_Fuel/entities.lua @@ -52,7 +52,7 @@ data:extend({ pipe_covers = pipecoverspicturesBioreactor(), base_area = 10, base_level = -1, - pipe_connections = {{ type = "input", position = {0, -2} }} + pipe_connections = {{ flow_direction = "input", direction = defines.direction.north, position = {0, -2} }} }, { production_type = "input", @@ -60,7 +60,7 @@ data:extend({ pipe_covers = pipecoverspicturesBioreactor(), base_area = 10, base_level = -1, - pipe_connections = {{ type = "input", position = {2, 0} }} + pipe_connections = {{ flow_direction = "input", direction = defines.direction.north, position = {2, 0} }} }, { production_type = "input", @@ -68,7 +68,7 @@ data:extend({ pipe_covers = pipecoverspicturesBioreactor(), base_area = 10, base_level = -1, - pipe_connections = {{ type = "input", position = {0, 2} }} + pipe_connections = {{ flow_direction = "input", direction = defines.direction.north, position = {0, 2} }} }, { production_type = "output", @@ -76,7 +76,7 @@ data:extend({ pipe_covers = pipecoverspicturesBioreactor(), base_area = 10, base_level = 1, - pipe_connections = {{ type = "output", position = {-2, -1} }} + pipe_connections = {{ flow_direction = "output", direction = defines.direction.north, position = {-2, -1} }} }, { production_type = "output", @@ -84,7 +84,7 @@ data:extend({ pipe_covers = pipecoverspicturesBioreactor(), base_area = 10, base_level = 1, - pipe_connections = {{ type = "output", position = {-2, 1} }} + pipe_connections = {{ flow_direction = "output", direction = defines.direction.north, position = {-2, 1} }} }, off_when_no_fluid_recipe = false }, @@ -163,8 +163,8 @@ if BI.Settings.BI_Bio_Fuel then base_level = -1, pipe_covers = pipecoverspictures(), pipe_connections = { - {type = "input-output", position = {-2, 0.5}}, - {type = "input-output", position = {2, 0.5}} + {flow_direction = "input-output", direction = defines.direction.north, position = {-2, 0.5}}, + {flow_direction = "input-output", direction = defines.direction.north, position = {2, 0.5}} }, production_type = "input-output", filter = "water" @@ -175,7 +175,7 @@ if BI.Settings.BI_Bio_Fuel then base_level = 1, pipe_covers = pipecoverspictures(), pipe_connections = { - {type = "output", position = {0, -1.5}} + {flow_direction = "output", direction = defines.direction.north, position = {0, -1.5}} }, production_type = "output", filter = "steam" diff --git a/Bio_Industries_2/prototypes/Bio_Garden/entities.lua b/Bio_Industries_2/prototypes/Bio_Garden/entities.lua index 4d88a02..0c32859 100644 --- a/Bio_Industries_2/prototypes/Bio_Garden/entities.lua +++ b/Bio_Industries_2/prototypes/Bio_Garden/entities.lua @@ -32,7 +32,7 @@ data:extend({ pipe_covers = pipecoverspictures(), base_area = 10, base_level = -1, - pipe_connections = {{ type = "input", position = {0, -2} }} + pipe_connections = {{ flow_direction = "input", direction = defines.direction.north, position = {0, -2} }} }, off_when_no_fluid_recipe = true }, diff --git a/Bio_Industries_2/prototypes/Bio_Solar_Farm/entities.lua b/Bio_Industries_2/prototypes/Bio_Solar_Farm/entities.lua index 733d43c..153f130 100644 --- a/Bio_Industries_2/prototypes/Bio_Solar_Farm/entities.lua +++ b/Bio_Industries_2/prototypes/Bio_Solar_Farm/entities.lua @@ -572,8 +572,8 @@ data:extend({ base_level = -1, pipe_covers = pipecoverspictures(), pipe_connections = { - {type = "input-output", position = {5, 0}}, - {type = "input-output", position = {-5, 0}}, + {flow_direction = "input-output", direction = defines.direction.north, position = {5, 0}}, + {flow_direction = "input-output", direction = defines.direction.north, position = {-5, 0}}, }, production_type = "input-output", filter = "water" @@ -584,8 +584,8 @@ data:extend({ base_level = 1, pipe_covers = pipecoverspictures(), pipe_connections = { - {type = "input-output", position = {0, 5}}, - {type = "input-output", position = {0, -5}}, + {flow_direction = "input-output", direction = defines.direction.north, position = {0, 5}}, + {flow_direction = "input-output", direction = defines.direction.north, position = {0, -5}}, }, production_type = "output", filter = "steam"