Fixed #434 - Manipulator rendering

This commit is contained in:
Calclavia 2014-03-13 22:26:16 +08:00
parent 1f44fab980
commit 558e5d4ae3
2 changed files with 25 additions and 17 deletions

View file

@ -22,23 +22,23 @@ public class RenderManipulator extends RenderImprintable
{
TileManipulator tile = (TileManipulator) tileEntity;
GL11.glPushMatrix();
GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);
GL11.glRotatef(180f, 0f, 0f, 1f);
if (tile.isOutput())
{
bindTexture(TEXTURE_INPUT);
}
else
{
bindTexture(TEXTURE_OUTPUT);
}
if (tile.worldObj != null)
{
int face = tile.getDirection().ordinal();
GL11.glPushMatrix();
GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);
GL11.glRotatef(180f, 0f, 0f, 1f);
if (tile.isOutput())
{
bindTexture(TEXTURE_INPUT);
}
else
{
bindTexture(TEXTURE_OUTPUT);
}
if (face == 2)
{
GL11.glRotatef(0f, 0f, 1f, 0f);
@ -55,11 +55,12 @@ public class RenderManipulator extends RenderImprintable
{
GL11.glRotatef(90f, 0f, 1f, 0f);
}
MODEL.render(0.0625F, true, 0);
GL11.glPopMatrix();
}
MODEL.render(0.0625F, true, 0);
GL11.glPopMatrix();
}
}

View file

@ -31,6 +31,13 @@ public class TileManipulator extends TileFilterable implements IRotatable, IMani
/** The class that interacts with inventories for this machine */
private InternalInventoryHandler invExtractionHelper;
public TileManipulator()
{
isOpaqueCube = false;
normalRender = false;
customItemRender = true;
}
@Override
public void updateEntity()
{