Maybe fix botania mana pool rendering

This commit is contained in:
Jason Mitchell authored and Jason Mitchell committed 2026-03-23 21:09:33 -07:00
1 parent 53996500d7
commit a483669579
4 files changed
+15 -1

No files matched your search

@@ -368,6 +368,7 @@ public class DeferredWorldRenderingPipeline implements WorldRenderingPipeline, R
null, ProgramId.Clouds, ProgramId.Clouds,
null, ProgramId.DamagedBlock, ProgramId.DamagedBlock,
ProgramId.Block, ProgramId.Block, ProgramId.Block,
ProgramId.BlockTrans, ProgramId.BlockTrans, ProgramId.BlockTrans,
ProgramId.BeaconBeam, ProgramId.BeaconBeam, ProgramId.BeaconBeam,
ProgramId.Entities, ProgramId.Entities, ProgramId.Entities,
ProgramId.EntitiesTrans, ProgramId.EntitiesTrans, ProgramId.EntitiesTrans,
@@ -720,6 +721,10 @@ public class DeferredWorldRenderingPipeline implements WorldRenderingPipeline, R
return RenderCondition.ENTITIES;
}
case BLOCK_ENTITIES:
if (GLStateManager.getBlendState().getSrcRgb() == SRC_ALPHA &&
GLStateManager.getBlendState().getDstRgb() == ONE_MINUS_SRC_ALPHA) {
return RenderCondition.BLOCK_ENTITIES_TRANSLUCENT;
}
return RenderCondition.BLOCK_ENTITIES;
case DESTROY:
return RenderCondition.DESTROY;