OpenGL.glScalef(slot, slot, 1f);
entry.gui.drawScreen(0, 0, 0f, 1f, size2.width/slot, size2.height/slot);
} else {
if (type==ItemRenderType.ENTITY) {
if (RenderItem.renderInFrame) {
<BUG>OpenGL.glRotatef(90f, 0f, 1f, 0f);

OpenGL.glScalef(-1f, -1f, 1f);
OpenGL.glTranslatef(.5f, -.62f, 0f);

} else {</BUG>
OpenGL.glRotatef(180f, 1f, 0f, 0f);

OpenGL.glScalef(slot, slot, 1f);
entry.gui.drawScreen(0, 0, 0f, 1f, size2.width/slot, size2.height/slot);
} else {
if (type==ItemRenderType.ENTITY) {
if (RenderItem.renderInFrame) {
OpenGL.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
OpenGL.glTranslatef(0f, 0.025f, 0f);
OpenGL.glScalef(1.6F, -1.6F, 1f);
final float f = 0.0078125F; // vanilla map offset
OpenGL.glTranslatef(-size.width/2f, -.5f, f*4);
} else {
OpenGL.glRotatef(180f, 1f, 0f, 0f);
