[Bug]: Void fluid pipes refund destroyed fluid and fill up instead of voiding
@chonkzillaofficial đang làm issue này rồi.
Từ ngày 5/12/2026.
- #87 của @chonkzillaofficial — đang mở
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Place a void fluid pipe (
buildcrafttransport:void_fluid). - Pump or insert water (or any fluid) into it, for example through a cobblestone fluid pipe from a tank.
- Wait a few seconds. The void pipe fills instead of staying empty.
- 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.
- Ngôn ngữ chính
- Java
- Star
- 20
- Fork
- 12
- Merge trung bình
- 21 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của BCCE-team/BuildCraft
-
[Bug]: FE and Kinesis extraction pipes render flow starting at the centre and scroll the source arm backwardsCó thể đã có người làm @chonkzillaofficial đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
BCCE-team/BuildCraft#85 ·
-
[Bug]: Stacked tanks draw fluid at the seam / bottom of the upper tankCó thể đã có người làm @chonkzillaofficial đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
BCCE-team/BuildCraft#83 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
BCCE-team/BuildCraft#82 ·
Tất cả issue của BCCE-team/BuildCraft
Issue tương tự
-
[P2] 生产环境下启动门闩的失败明细不进容器标准输出Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Lincoln-cn/JAiRouter#1473 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Link not working in the feedback concerning String.format() in exercise 'Tim from Marketing'Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
exercism/java-analyzer#379 ·
-
area: ui bug priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
tetsuji16/microProject#1893 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
liberation-data/fornax4j#325 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 3 ngày