Fixed fluid render
Adjusted fluid render size while used bigger texture Closes #112
This commit is contained in:
parent
b777a2c5bd
commit
caab7972ae
2 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@ public class GT_FluidSlot extends Slot {
|
|||
IIcon text = fluid.getFluid().getIcon(fluid);
|
||||
if (text != null) {
|
||||
GTRenderHelper.bindTexture(TextureMap.locationBlocksTexture);
|
||||
GTRenderHelper.drawQuad(posX, posY, 50, text);
|
||||
GTRenderHelper.drawQuad(posX, posY, 50, 16, 16, text.getMinU(), text.getMaxU(), text.getMinV(), text.getMaxV());
|
||||
}
|
||||
|
||||
// Amount render
|
||||
|
|
|
@ -84,7 +84,7 @@ public class PositionedFluidStack {
|
|||
int color = fluid.getFluid().getColor(fluid);
|
||||
GL11.glColor3ub((byte) (color >> 16 & 0xFF), (byte) (color >> 8 & 0xFF), (byte) (color & 0xFF));
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
GTRenderHelper.drawQuad(x, y, 0, fluidIcon);
|
||||
GTRenderHelper.drawQuad(x, y, 0, 16, 16, fluidIcon.getMinU(), fluidIcon.getMaxU(), fluidIcon.getMinV(), fluidIcon.getMaxV());
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue