[Bug]: Stacked tanks draw fluid at the seam / bottom of the upper tank
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 20/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- java
調査の方向性
Read RenderTank and TankRenderState, then compare how RenderEngine_BC8 snapshots visual fields during extractRenderState. The linked follow-up PR #86 describes snapshotting fluid state, amount, capacity, connected faces, and light before submit; inspect it and the relevant renderer tests. Done when stacked tanks render fluid at the bottommost tank while gas behavior remains correct.
索引モデルが issue の本文から書いたものです。
説明
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
When an empty tank is placed on top of a tank that already contains a liquid (water, BuildCraft oil, etc.), the fluid appears at the bottom of the upper tank — the seam between the two — and the lower tank looks empty. The fluid should stay at the bottom of the bottommost tank.
This is a client-only render bug. Server-side amounts, comparators, GUIs that read the tile tank, and breaking a tank are all correct: the liquid never actually moves into the upper tank.
Expected: liquids stay visually in the bottom tank of a stack, as they do in classic BuildCraft.
Actual: the lower tank's fluid is drawn at the upper tank's pose, so it sits at the seam.
Root cause: RenderTank was ported to Minecraft 26.3 / 1.21.11's extract/submit block-entity pipeline by storing a live TileTank on TankRenderState and calling tile.getFluidForRender() again in submit. Other BCCE renderers (for example RenderEngine_BC8) snapshot their visual fields during extractRenderState and never keep the tile. A pooled render state can have its pose / blockPos updated for the newly placed top tank while state.tile still points at the filled tank below. submit then draws the bottom tank's fluid at the top tank's pose.
Steps to reproduce
- Place a BuildCraft tank and put a partial amount of water in it (for example 4000 mB of 8000).
- Place an empty tank directly on top of it.
- Observe the water: it is drawn at the bottom of the upper tank / the seam, and the lower tank looks empty.
- (Optional) Place a second empty tank on top, or break the middle tank of a 3-high stack: server amounts stay in the bottom tank; only the drawing is wrong.
- Repeat with
buildcraftenergy:oil(density 900) — same visual bug.
Gases such as buildcraftenergy:fuel_gaseous correctly collect in the top tank. That is intended and is not this bug.
Additional context
Reproduced in a private 26.3 NeoForge pack with BCCE 8.0.31. A headless dedicated-server harness (45 checks) confirmed water and oil stayed in the bottom tank after stacking, filling from the top, draining from the bottom, and breaking the middle tank. IC2 hydrogen (density -5000) and BC gaseous fuel (density -300) correctly settled in the top tank.
A real 26.3 client check on 4 Dec 2026, 9:58–10:00 PM America/New_York, with a patched snapshot renderer, showed the bug gone. I could not attach the PNG files through this API, so here is what each screenshot showed. Client and server amounts matched after stacking (water or oil: 4000 mB in the bottom tank, 0 above).
tank_01_water_before.png— partially filled water tank (4000 mB) before stacking.tank_02_water_one_on_top.png— one empty tank on top; water stays visibly in the bottom tank (server=4000/0, client=4000/0).tank_03_water_two_before.png— water tank before adding two empty tanks.tank_04_water_two_on_top.png— two empty tanks on top; water stays in the bottom tank (server=4000/0/0, client=4000/0/0).tank_05_oil_before.png— partially filled BuildCraft oil tank (density 900).tank_06_oil_one_on_top.png— one empty tank on top of oil; oil stays in the bottom tank (server=4000/0, client=4000/0).tank_07_break_before.png— 3-high stack, water in the bottom, before breaking the middle tank.tank_08_break_after.png— after breaking the middle tank: water still in the bottom tank, top empty, gap in the middle.tank_09_fill_from_top.png— filling from the isolated top tank after the break: top gets 4000, bottom keeps 4000, middle still empty.
The original bug (fluid drawn at the seam / bottom of the top tank) did not appear in any of these shots.
A follow-up PR snapshots the fluid stack (copied), interpolated amount, capacity, connected faces, and light during extractRenderState. submit renders only that snapshot and no longer holds a live TileTank.
Related side note (not this bug, not changed in the patch): FluidRenderer decides gas vs liquid with getDensity() < 0, while the server uses FluidType.isLighterThanAir() (getDensity() <= 0). A fluid with density 0 would be moved to the top tank but drawn from the bottom of that tank. Water, oil, hydrogen, and gaseous fuel do not have density 0, so this is not the stacked-tank report. Happy to follow up with a one-line renderer change if wanted.
Found and fixed with AI assistance; tested on the versions listed.
- 主要言語
- Java
- スター
- 20
- フォーク
- 12
- 平均マージ
- 21分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
BCCE-team/BuildCraft のほかの issue
-
[Bug]: FE and Kinesis extraction pipes render flow starting at the centre and scroll the source arm backwards対応中かも @chonkzillaofficial が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
BCCE-team/BuildCraft#85 ·
-
[Bug]: Void fluid pipes refund destroyed fluid and fill up instead of voiding対応中かも @chonkzillaofficial が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
BCCE-team/BuildCraft#84 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
BCCE-team/BuildCraft#82 ·
BCCE-team/BuildCraft の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Lincoln-cn/JAiRouter#1473 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
exercism/java-analyzer#379 ·
-
area: ui bug priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
tetsuji16/microProject#1893 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
liberation-data/fornax4j#325 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 3 日以内に返信