From 2f31ee747d693ed444334c84b4e2b112ef142531 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Fri, 15 Jan 2021 23:18:13 +0900 Subject: facking glstatemanager --- .../kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java index d3792e77..d98a3bbc 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java @@ -83,8 +83,8 @@ public class FeatureChestPrice extends SimpleFeature implements GuiBackgroundRen int width = 120; - GL11.glPushMatrix(); - GL11.glTranslated(left, top, 0); + GlStateManager.pushMatrix(); + GlStateManager.translate(left, top, 0); Gui.drawRect( 0,0,width, 30, 0xFFDDDDDD); FontRenderer fr = Minecraft.getMinecraft().fontRendererObj; @@ -96,6 +96,6 @@ public class FeatureChestPrice extends SimpleFeature implements GuiBackgroundRen str = (itemPrice > chestPrice ? "+" : "") +TextUtils.format(itemPrice - chestPrice); fr.drawString(str, width - fr.getStringWidth(str) - 5, 15, itemPrice > chestPrice ? 0xFF00CC00 : 0xFFCC0000); - GL11.glPopMatrix(); + GlStateManager.popMatrix(); } } -- cgit