Convert remaining color calls

This commit is contained in:
pupnewfster committed 2019-07-08 11:45:18 -04:00
1 parent b1d7411b4b
commit d687abd75e
11 files changed
+24 -38

No files matched your search

@@ -38,8 +38,7 @@ public class RenderDynamicTank extends TileEntitySpecialRenderer<TileEntityDynam
renderHelper.color(tileEntity.structure.fluidStored);
if (tileEntity.structure.fluidStored.getFluid().isGaseous()) {
GlStateManager.color(1F, 1F, 1F, Math.min(1, ((float) tileEntity.structure.fluidStored.amount / (float) tileEntity.clientCapacity)
+ MekanismRenderer.GAS_RENDER_BASE));
renderHelper.colorAlpha(Math.min(1, ((float) tileEntity.structure.fluidStored.amount / (float) tileEntity.clientCapacity) + MekanismRenderer.GAS_RENDER_BASE));
FluidRenderer.getTankDisplay(data).render();
} else {
FluidRenderer.getTankDisplay(data, tileEntity.prevScale).render();