Fix GT gases being invisible in seared tanks (#348)

This commit is contained in:
micvog authored and GitHub committed 2026-10-06 04:25:04 -05:00
1 parent 115c339a62
commit 644373000c
1 file changed
+4 -2
@@ -45,8 +45,10 @@ public class TankRender implements ISimpleBlockRenderingHandler {
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelID,
RenderBlocks renderer) {
if (modelID == tankModelID) {
// Liquid
if (ForgeHooksClient.getWorldRenderPass() == 0) {
// Liquid, in the translucent pass: the alpha test of pass 0 discards fluid textures that are less than
// 50% opaque (e.g. GT gases). The block itself is drawn in pass 0, its textures are fully opaque or fully
// clear.
if (ForgeHooksClient.getWorldRenderPass() == 1) {
LavaTankLogic logic = (LavaTankLogic) world.getTileEntity(x, y, z);
if (logic != null && logic.containsFluid()) {
FluidStack liquid = logic.tank.getFluid();