Don't draw small grid quantities on unicode font
This commit is contained in:
@@ -243,7 +243,10 @@ public abstract class GuiBase extends GuiContainer {
|
|||||||
public void drawQuantity(int x, int y, String qty) {
|
public void drawQuantity(int x, int y, String qty) {
|
||||||
GlStateManager.pushMatrix();
|
GlStateManager.pushMatrix();
|
||||||
GlStateManager.translate(x, y, 1);
|
GlStateManager.translate(x, y, 1);
|
||||||
GlStateManager.scale(0.5f, 0.5f, 1);
|
|
||||||
|
if (!fontRendererObj.getUnicodeFlag()) {
|
||||||
|
GlStateManager.scale(0.5f, 0.5f, 1);
|
||||||
|
}
|
||||||
|
|
||||||
GlStateManager.disableLighting();
|
GlStateManager.disableLighting();
|
||||||
GlStateManager.disableRescaleNormal();
|
GlStateManager.disableRescaleNormal();
|
||||||
@@ -252,7 +255,7 @@ public abstract class GuiBase extends GuiContainer {
|
|||||||
GlStateManager.blendFunc(770, 771);
|
GlStateManager.blendFunc(770, 771);
|
||||||
GlStateManager.disableDepth();
|
GlStateManager.disableDepth();
|
||||||
|
|
||||||
fontRendererObj.drawStringWithShadow(qty, 30 - fontRendererObj.getStringWidth(qty), 22, 16777215);
|
fontRendererObj.drawStringWithShadow(qty, (fontRendererObj.getUnicodeFlag() ? 16 : 30) - fontRendererObj.getStringWidth(qty), fontRendererObj.getUnicodeFlag() ? 8 : 22, 16777215);
|
||||||
|
|
||||||
GlStateManager.enableDepth();
|
GlStateManager.enableDepth();
|
||||||
GlStateManager.enableTexture2D();
|
GlStateManager.enableTexture2D();
|
||||||
|
|||||||
Reference in New Issue
Block a user