Minor cleanup to energy cube rendering

This commit is contained in:
pupnewfster committed 2019-07-08 11:46:19 -04:00
1 parent 28b682d567
commit aff3565fa3
6 files changed
+42 -60

No files matched your search

@@ -36,6 +36,7 @@ public class RenderDynamicTank extends TileEntitySpecialRenderer<TileEntityDynam
renderHelper.enableGlow(tileEntity.structure.fluidStored).color(tileEntity.structure.fluidStored);
if (tileEntity.structure.fluidStored.getFluid().isGaseous()) {
//TODO: Does the color alpha overwrite the color set based on fluid
renderHelper.colorAlpha(Math.min(1, ((float) tileEntity.structure.fluidStored.amount / (float) tileEntity.clientCapacity) + MekanismRenderer.GAS_RENDER_BASE));
FluidRenderer.getTankDisplay(data).render();
} else {