Skip to content

Commit

Permalink
Fixes #1561
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
covers1624 committed Apr 30, 2015
1 parent d0af50c commit d77b571
Showing 1 changed file with 18 additions and 2 deletions.
Expand Up @@ -55,11 +55,27 @@ void renderItem (DryingRackLogic logic, ItemStack stack)
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)
Expand Down

0 comments on commit d77b571

Please sign in to comment.