Adds color to Refinery Fluids

Note, this needs a FluidStack to be complete. This only covers basic Fluid Colors
This commit is contained in:
Soaryn 2013-08-03 21:40:57 -04:00
parent 95fa107860
commit 333e38d5b2

View file

@ -182,6 +182,13 @@ public abstract class GuiAdvancedInterface extends GuiBuildCraft {
super(x, y);
}
@Override
public void drawSprite(int cornerX, int cornerY) {
if(fluid != null)
FluidRenderer.colorFluid(new FluidStack(fluid,100)); // Lacks FluidStack to properly function Please revise.
super.drawSprite(cornerX, cornerY);
}
@Override
public Icon getIcon() {
return FluidRenderer.getFluidTexture(fluid, false);