From 75d17c630ed46b5073c2cf3fc4c634478a035a03 Mon Sep 17 00:00:00 2001 From: protocol_1903 <67478786+protocol-1903@users.noreply.github.com> Date: Tue, 25 Aug 2026 00:34:19 -0700 Subject: [PATCH] Fixed misaligned pipe connection graphics. Resolves https://github.com/pyanodon/pybugreports/issues/1540 --- changelog.txt | 1 + prototypes/buildings/cooling-tower-mk01.lua | 4 ++-- prototypes/buildings/cooling-tower-mk02.lua | 4 ++-- prototypes/buildings/glassworks.lua | 10 +++++----- prototypes/buildings/hpf.lua | 4 ++-- prototypes/buildings/niobium-mine.lua | 2 +- 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/changelog.txt b/changelog.txt index 78e3a10a..3565a88c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Version: 3.1.4 Date: ???? Changes: - Fixed that assembling machine fluidbox connections were referenced instead of copied. Resolves https://github.com/pyanodon/pybugreports/issues/1551 + - Fixed misaligned pipe connection graphics. Resolves https://github.com/pyanodon/pybugreports/issues/1540 --------------------------------------------------------------------------------------------------- Version: 3.1.3 Date: 2026-07-16 diff --git a/prototypes/buildings/cooling-tower-mk01.lua b/prototypes/buildings/cooling-tower-mk01.lua index b60c66c0..374f7fb1 100644 --- a/prototypes/buildings/cooling-tower-mk01.lua +++ b/prototypes/buildings/cooling-tower-mk01.lua @@ -61,14 +61,14 @@ ENTITY { fluid_boxes = { { production_type = "input", - pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {-0.0, -0.9}, nil, nil), + pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {-0.0, -0.75}, nil, nil), pipe_covers = py.pipe_covers(false, true, true, true), volume = 100, pipe_connections = {{flow_direction = "input", position = {1.0, 0.0}, direction = defines.direction.east}} }, { production_type = "output", - pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {-0.0, -0.9}, nil, nil), + pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {-0.0, -0.75}, nil, nil), pipe_covers = py.pipe_covers(false, true, true, true), volume = 100, pipe_connections = {{flow_direction = "output", position = {-1.0, 0.0}, direction = defines.direction.west}} diff --git a/prototypes/buildings/cooling-tower-mk02.lua b/prototypes/buildings/cooling-tower-mk02.lua index 937807b0..4a6e58af 100644 --- a/prototypes/buildings/cooling-tower-mk02.lua +++ b/prototypes/buildings/cooling-tower-mk02.lua @@ -87,14 +87,14 @@ ENTITY { fluid_boxes = { { production_type = "input", - pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {-0.05, -0.7}, nil, nil, pipes), + pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {-0.0, -0.75}, nil, nil), pipe_covers = py.pipe_covers(false, true, true, true), volume = 100, pipe_connections = {{flow_direction = "input", position = {1.0, -2.0}, direction = defines.direction.north}} }, { production_type = "output", - pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {-0.05, -0.7}, nil, nil, pipes), + pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {-0.0, -0.75}, nil, nil), pipe_covers = py.pipe_covers(false, true, true, true), volume = 100, pipe_connections = {{flow_direction = "output", position = {-1.0, -2.0}, direction = defines.direction.north}} diff --git a/prototypes/buildings/glassworks.lua b/prototypes/buildings/glassworks.lua index abdf9562..7bf53b70 100644 --- a/prototypes/buildings/glassworks.lua +++ b/prototypes/buildings/glassworks.lua @@ -156,7 +156,7 @@ for i = 1, 4 do {flow_direction = "input-output", position = {-3.0, 0}, direction = defines.direction.west} }, pipe_covers = py.pipe_covers(false, true, true, true), - pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.96}, nil, nil), + pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.75}, nil, nil), production_type = "input", }, effectivity = 1, @@ -199,28 +199,28 @@ for i = 1, 4 do --1 { production_type = "input", - pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.96}, nil, nil), + pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.75}, nil, nil), pipe_covers = py.pipe_covers(false, true, true, true), volume = 100, pipe_connections = {{flow_direction = "input", position = {1.0, -3.0}, direction = defines.direction.north}} }, { production_type = "input", - pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.96}, nil, nil), + pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.75}, nil, nil), pipe_covers = py.pipe_covers(false, true, true, true), volume = 100, pipe_connections = {{flow_direction = "input", position = {-1.0, -3.0}, direction = defines.direction.north}} }, { production_type = "input", - pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.96}, nil, nil), + pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.75}, nil, nil), pipe_covers = py.pipe_covers(false, true, true, true), volume = 100, pipe_connections = {{flow_direction = "input", position = {2.0, 3.0}, direction = defines.direction.south}} }, { production_type = "output", - pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.96}, nil, nil), + pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.75}, nil, nil), pipe_covers = py.pipe_covers(false, true, true, true), volume = 100, pipe_connections = {{flow_direction = "output", position = {-2.0, 3.0}, direction = defines.direction.south}} diff --git a/prototypes/buildings/hpf.lua b/prototypes/buildings/hpf.lua index bef29162..6035a7ee 100644 --- a/prototypes/buildings/hpf.lua +++ b/prototypes/buildings/hpf.lua @@ -144,14 +144,14 @@ for i = 1, 4 do fluid_boxes = { { production_type = "input", - pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.96}, nil, nil), + pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.75}, nil, nil), pipe_covers = py.pipe_covers(false, true, true, true), volume = 100, pipe_connections = {{flow_direction = "input", position = {3.0, 0.0}, direction = defines.direction.east}} }, { production_type = "output", - pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.96}, nil, nil), + pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {0.0, -0.75}, nil, nil), pipe_covers = py.pipe_covers(false, true, true, true), volume = 100, pipe_connections = {{flow_direction = "output", position = {-3.0, 0.0}, direction = defines.direction.west}} diff --git a/prototypes/buildings/niobium-mine.lua b/prototypes/buildings/niobium-mine.lua index 9b16c64d..fd8bfd42 100644 --- a/prototypes/buildings/niobium-mine.lua +++ b/prototypes/buildings/niobium-mine.lua @@ -89,7 +89,7 @@ ENTITY { collision_box = {{-3.3, -3.3}, {3.3, 3.3}}, selection_box = {{-3.5, -3.5}, {3.5, 3.5}}, input_fluid_box = { - pipe_picture = py.pipe_pictures("assembling-machine-2", nil, {-3, 3}), + pipe_picture = require("__base__.prototypes.entity.assembler-pictures").assembler2pipepictures, pipe_covers = _G.pipecoverspictures(), volume = 200, pipe_connections = {