[Bug]: Void fluid pipes refund destroyed fluid and fill up instead of voiding

Abierto
#84 0 comentarios 0 reacciones 0 asignados Ver en GitHub

@chonkzillaofficial ya está trabajando en esto.

Desde el 5/12/2026.

  • #87 de @chonkzillaofficial — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
java
Área
backend, game-dev

Línea de trabajo

Read PipeBehaviourVoid.moveFluidToCentre and the PipeFlowFluids.moveToCenter refund path described in the issue, then inspect the linked PR #87 for the proposed change. The issue reports a passing headless server harness with direct and piped fluid cases; done means fluid entering a void pipe is destroyed, both pipes remain empty after ticking, and breaking the void pipe drops only the pipe item.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Minecraft version

26.3

Mod loader

NeoForge

BuildCraft Community Edition version

8.0.31 (also confirmed still present on current main at c8dff44713fd9f6917d6b1eeda3bf1164db99426)

Bug description

Piping fluid into buildcrafttransport:void_fluid fills the void pipe instead of destroying the fluid. Breaking the pipe then spills whatever was stored (water, hydrogen, etc.).

Expected: a void fluid pipe deletes fluid that enters it, as in classic BuildCraft 1.12 / 8.0. The item void pipe already works.

Actual: the void pipe's side sections fill up. Nothing is deleted.

Root cause: PipeBehaviourVoid.moveFluidToCentre still does the classic thing: it zeros PipeEventFluid.OnMoveToCentre.fluidEnteringCentre and leaves fluidLeavingSide alone, so the difference should be destroyed.

Classic PipeFlowFluids.moveToCenter drained fluidLeavingSide from the side section and filled only fluidEnteringCentre into the centre. There was no refund. Zero entering meant the drained fluid was gone.

The Community Edition path refunds after that event:

  • if entering > 0, fill the centre, then refund actuallyDrained - actuallyFilled
  • if entering == 0, refund the entire drain back into the side

That refund includes fluid the event intentionally did not send to the centre, so the void pipe never deletes anything.

This is not a gas-only bug. PipeFlowFluids has no special gas path; water fails the same way. Static @PipeEventHandler methods are registered (PipeEventBus uses findStatic).

Steps to reproduce
  1. Place a void fluid pipe (buildcrafttransport:void_fluid).
  2. Pump or insert water (or any fluid) into it, for example through a cobblestone fluid pipe from a tank.
  3. Wait a few seconds. The void pipe fills instead of staying empty.
  4. Break the void pipe: the stored fluid spills into the world.
Additional context

Reproduced in a private 26.3 NeoForge pack with BCCE 8.0.31, originally noticed with IC2 Classic Renewal hydrogen, then confirmed with water.

A headless dedicated-server harness on 8.0.31 passed 26 checks:

  • Direct: 1000 mB into the void pipe's side section; after ticking, the pipe was empty; breaking it dropped only the pipe item.
  • Piped: cobblestone fluid pipe → void fluid pipe, 200 mB inserted (cobble pipe capacity); after ticking both pipes were empty; breaking the void pipe again dropped only the pipe item.

A follow-up PR changes moveToCenter so that after OnMoveToCentre it drains leaving from the side, fills entering into the centre, and refunds only entering - actuallyFilled (centre refusal). When entering is 0, the drain is not refunded and the fluid is destroyed. That is the classic contract.

Found and fixed with AI assistance; tested on the versions listed.

Lenguaje dominante
Java
Estrellas
20
Forks
12
Merge medio
21 min
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de BCCE-team/BuildCraft

Todos los issues de BCCE-team/BuildCraft

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.