mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Minor cleanup to energy cube rendering
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user