Skip to content

Commit

Permalink
Prevent pipe mixing
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Oct 19, 2024
1 parent 7658420 commit 825958f
Showing 1 changed file with 34 additions and 8 deletions.
42 changes: 34 additions & 8 deletions prototypes/pipes/ht-pipes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,28 @@ ENTITY {
collision_box = {{-0.29, -0.29}, {0.29, 0.29}},
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
fluid_box = {
volume = 100,
volume = 400,
pipe_connections = {
{position = {0, 0}, direction = defines.direction.north},
{position = {0, 0}, direction = defines.direction.east},
{position = {0, 0}, direction = defines.direction.south},
{position = {0, 0}, direction = defines.direction.west}
{
position = {0, 0},
direction = defines.direction.north,
connection_category = {"ht-pipes"}
},
{
position = {0, 0},
direction = defines.direction.east,
connection_category = {"ht-pipes"}
},
{
position = {0, 0},
direction = defines.direction.south,
connection_category = {"ht-pipes"}
},
{
position = {0, 0},
direction = defines.direction.west,
connection_category = {"ht-pipes"}
}
},
hide_connection_info = true,
max_pipeline_extent = (data.raw.pipe.pipe.fluid_box.max_pipeline_extent or data.raw["utility-constants"].default.default_pipeline_extent) * 4
Expand Down Expand Up @@ -381,11 +397,21 @@ ENTITY {
collision_box = {{-0.29, -0.29}, {0.29, 0.2}},
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
fluid_box = {
volume = 100,
volume = 400,
pipe_covers = py_pipecoverspictures(),
pipe_connections = {
{position = {0, 0}, direction = defines.direction.north},
{connection_type = "underground", position = {0, 0}, direction = defines.direction.south, max_underground_distance = 48}
{
position = {0, 0},
direction = defines.direction.north,
connection_category = {"ht-pipes"}
},
{
connection_type = "underground",
position = {0, 0},
direction = defines.direction.south,
max_underground_distance = 48,
connection_category = {"ht-pipes"}
}
},
hide_connection_info = true,
max_pipeline_extent = (data.raw.pipe.pipe.fluid_box.max_pipeline_extent or data.raw["utility-constants"].default.default_pipeline_extent) * 4
Expand Down

0 comments on commit 825958f

Please sign in to comment.