Skip to content

Commit

Permalink
Add startup setting for braided pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Oct 19, 2024
1 parent ed1dbe0 commit b096391
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions prototypes/pipes/ht-pipes.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
local MULTIPURPOSE_CONNECTION_CATEGORY = settings.startup["py-braided-pipes"].value and {"ht-pipes"} or nil

--- @param i integer
local function make_visualization(i)
return
Expand Down Expand Up @@ -337,22 +339,22 @@ ENTITY {
{
position = {0, 0},
direction = defines.direction.north,
connection_category = {"ht-pipes"}
connection_category = MULTIPURPOSE_CONNECTION_CATEGORY
},
{
position = {0, 0},
direction = defines.direction.east,
connection_category = {"ht-pipes"}
connection_category = MULTIPURPOSE_CONNECTION_CATEGORY
},
{
position = {0, 0},
direction = defines.direction.south,
connection_category = {"ht-pipes"}
connection_category = MULTIPURPOSE_CONNECTION_CATEGORY
},
{
position = {0, 0},
direction = defines.direction.west,
connection_category = {"ht-pipes"}
connection_category = MULTIPURPOSE_CONNECTION_CATEGORY
}
},
hide_connection_info = true,
Expand Down Expand Up @@ -405,14 +407,14 @@ ENTITY {
{
position = {0, 0},
direction = defines.direction.north,
connection_category = {"ht-pipes"}
connection_category = MULTIPURPOSE_CONNECTION_CATEGORY
},
{
connection_type = "underground",
position = {0, 0},
direction = defines.direction.south,
max_underground_distance = 48,
connection_category = {"ht-pipes"}
connection_category = MULTIPURPOSE_CONNECTION_CATEGORY
}
},
hide_connection_info = true,
Expand Down

0 comments on commit b096391

Please sign in to comment.