The item in the drying rack was being rendered on the incorrect side of
the block, rotating to face the correct way then translating it to the
correct spot fixes the issue.
This commit is contained in:
covers1624 committed 2015-04-30 20:25:20 +09:30
1 parent d0af50c149
commit d77b571f23
1 file changed
+18 -2
@@ -55,11 +55,27 @@ public class DryingRackSpecialRender extends TileEntitySpecialRenderer
if (meta == 2)
GL11.glTranslatef(0F, 0F, 0.375F);
if (meta == 3)
GL11.glTranslatef(0F, 0F, -0.375F);
{
/**
* Rotate the image as it is flipped, translate to the correct spot.
*/
GL11.glRotatef(180F, 0F, 1F, 0F);
GL11.glTranslatef(0F, 0F, 0.2F);
//GL11.glTranslatef(0F, 0F, -0.375F);
}
if (meta == 4)
{
GL11.glTranslatef(0F, 0F, 0.2875F);
}
if (meta == 5)
GL11.glTranslatef(0F, 0F, -0.5F);
{
/**
* Rotate the image as it is flipped, translate to the correct spot.
*/
GL11.glRotatef(180F, 0F, 1F, 0F);
GL11.glTranslatef(0F, 0F, 0.3F);
//GL11.glTranslatef(0F, 0F, -0.5F);
}
}
GL11.glScalef(2F, 2F, 2F);
if (stack.getItem() instanceof ItemBlock)