Skip to content

Plungers empty Fluid Pipes - #5332

Open
DilithiumThoride wants to merge 2 commits into
1.20.1from
dt/pipe-plunger
Open

Plungers empty Fluid Pipes#5332
DilithiumThoride wants to merge 2 commits into
1.20.1from
dt/pipe-plunger

Conversation

@DilithiumThoride

Copy link
Copy Markdown
Contributor

What

Plungers didn't empty fluid pipes. Now they do.

Implementation Details

The only current place Plunger Behavior is currently defined is inside PlungerBehavior, which covers the cases for a standard GTM machine, a Forge machine with a fluid handler, and any machine or slot that can take a Bucket interaction. However, GTM Fluid Pipes are none of those.

To deal with this I did an override of onToolClick specifically on FluidPipeBlockEntity. The Plunger action is checked last, after the normal crowbar/wrench/PipeTune checks.

For quad and nonuple fluid pipes, all pipes in the block are vented at once.

AI Usage

  • [ X ] No AI driven tools were used for this pull request.

Outcome

image image

@DilithiumThoride
DilithiumThoride requested a review from a team as a code owner August 22, 2026 15:31
@DilithiumThoride DilithiumThoride added type: bugfix General bug fixes 1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels Aug 22, 2026
@github-actions github-actions Bot added the Tests: Passed Game Tests have passed on this PR label Aug 22, 2026
Comment thread src/main/java/com/gregtechceu/gtceu/common/blockentity/FluidPipeBlockEntity.java Outdated
@YoungOnionMC

Copy link
Copy Markdown
Member

want @Ghostipedia to look at this before merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. Tests: Passed Game Tests have passed on this PR type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants