Fixed Bug: #0642 - Unicode Font too small for item counts in terminals
This commit is contained in:
parent
862c89e1f0
commit
88d500eac2
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,9 @@ public class AppEngRenderItem extends RenderItem
|
||||||
float RScaleFactor = 1.0f / ScaleFactor;
|
float RScaleFactor = 1.0f / ScaleFactor;
|
||||||
int offset = AEConfig.instance.useTerminalUseLargeFont() ? 0 : -1;
|
int offset = AEConfig.instance.useTerminalUseLargeFont() ? 0 : -1;
|
||||||
|
|
||||||
|
boolean unicodeFlag = par1FontRenderer.getUnicodeFlag();
|
||||||
|
par1FontRenderer.setUnicodeFlag( false );
|
||||||
|
|
||||||
if ( is.isItemDamaged() )
|
if ( is.isItemDamaged() )
|
||||||
{
|
{
|
||||||
int k = (int) Math.round( 13.0D - is.getItemDamageForDisplay() * 13.0D / is.getMaxDamage() );
|
int k = (int) Math.round( 13.0D - is.getItemDamageForDisplay() * 13.0D / is.getMaxDamage() );
|
||||||
|
@ -139,6 +142,8 @@ public class AppEngRenderItem extends RenderItem
|
||||||
GL11.glEnable( GL11.GL_LIGHTING );
|
GL11.glEnable( GL11.GL_LIGHTING );
|
||||||
GL11.glEnable( GL11.GL_DEPTH_TEST );
|
GL11.glEnable( GL11.GL_DEPTH_TEST );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
par1FontRenderer.setUnicodeFlag( unicodeFlag );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue