Fix Mechanical Pipe non-vanilla liquid rendering. Closes #186

This commit is contained in:
Ben Spiers 2013-07-17 20:01:16 +01:00
parent 1b039bce4b
commit 92c3cb6811

View file

@ -59,14 +59,14 @@ public class RenderMechanicalPipe extends TileEntitySpecialRenderer
MekanismRenderer.glowOn(); MekanismRenderer.glowOn();
} }
bindTextureByName(tileEntity.refLiquid.getTextureSheet()); bindTextureByName(tileEntity.refLiquid.canonical().getTextureSheet());
GL11.glTranslatef((float)x, (float)y, (float)z); GL11.glTranslatef((float)x, (float)y, (float)z);
for(int i = 0; i < 6; i++) for(int i = 0; i < 6; i++)
{ {
if(connectable[i]) if(connectable[i])
{ {
int[] displayList = getListAndRender(ForgeDirection.getOrientation(i), tileEntity.refLiquid); int[] displayList = getListAndRender(ForgeDirection.getOrientation(i), tileEntity.refLiquid.canonical());
if(displayList != null) if(displayList != null)
{ {
@ -75,7 +75,7 @@ public class RenderMechanicalPipe extends TileEntitySpecialRenderer
} }
} }
int[] displayList = getListAndRender(ForgeDirection.UNKNOWN, tileEntity.refLiquid); int[] displayList = getListAndRender(ForgeDirection.UNKNOWN, tileEntity.refLiquid.canonical());
if(displayList != null) if(displayList != null)
{ {