data-updates.lua:
if mods["Krastorio2"] and settings.startup["kr-pipes-and-belts-changes"].value then
for _, pipe_name in pairs({
"underground-i-pipe",
"underground-i-space-pipe",
"underground-L-pipe",
"underground-L-space-pipe",
"underground-t-pipe",
"underground-t-space-pipe",
"underground-cross-pipe",
"underground-cross-space-pipe",
"one-to-one-forward-pipe",
"one-to-one-forward-space-pipe",
"one-to-one-left-pipe",
"one-to-one-left-space-pipe",
"one-to-one-reverse-pipe",
"one-to-one-reverse-space-pipe",
"one-to-one-right-pipe",
"one-to-one-right-space-pipe",
"one-to-two-perpendicular-pipe",
"one-to-two-perpendicular-space-pipe",
"one-to-two-parallel-pipe",
"one-to-two-parallel-space-pipe",
"one-to-two-perpendicular-secondary-pipe",
"one-to-two-perpendicular-secondary-space-pipe",
"one-to-two-parallel-secondary-pipe",
"one-to-two-parallel-secondary-space-pipe",
"one-to-two-L-FL-pipe",
"one-to-two-L-FL-space-pipe",
"one-to-two-L-FR-pipe",
"one-to-two-L-FR-space-pipe",
"one-to-two-L-RR-pipe",
"one-to-two-L-RR-space-pipe",
"one-to-two-L-RL-pipe",
"one-to-two-L-RL-space-pipe",
"one-to-three-forward-pipe",
"one-to-three-forward-space-pipe",
"one-to-three-left-pipe",
"one-to-three-left-space-pipe",
"one-to-three-reverse-pipe",
"one-to-three-reverse-space-pipe",
"one-to-three-right-pipe",
"one-to-three-right-space-pipe",
"one-to-four-pipe",
"one-to-four-space-pipe"
}) do
for i, connection in pairs(
data.raw["pipe-to-ground"][pipe_name].fluid_box.pipe_connections or {}
) do
if connection.max_underground_distance then
connection.max_underground_distance = math.max(connection.max_underground_distance, 22)
end
end
end
end