aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonTombs.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-01-15 23:18:13 +0900
committersyeyoung <cyong06@naver.com>2021-01-15 23:18:13 +0900
commit2f31ee747d693ed444334c84b4e2b112ef142531 (patch)
tree6d45305ca7547710081bf866970d6a320358d4b0 /src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonTombs.java
parent58040f039287bcbfcfb6a5bd06172820f0fa16cf (diff)
downloadSkyblock-Dungeons-Guide-2f31ee747d693ed444334c84b4e2b112ef142531.tar.gz
Skyblock-Dungeons-Guide-2f31ee747d693ed444334c84b4e2b112ef142531.tar.bz2
Skyblock-Dungeons-Guide-2f31ee747d693ed444334c84b4e2b112ef142531.zip
facking glstatemanager
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonTombs.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonTombs.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonTombs.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonTombs.java
index 511e971f..681cfd55 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonTombs.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonTombs.java
@@ -8,6 +8,7 @@ import kr.syeyoung.dungeonsguide.utils.TextUtils;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.network.NetworkPlayerInfo;
+import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.scoreboard.ScorePlayerTeam;
import org.lwjgl.opengl.GL11;
@@ -26,7 +27,7 @@ public class FeatureDungeonTombs extends GuiFeature {
if (!skyblockStatus.isOnDungeon()) return;
FontRenderer fr = getFontRenderer();
double scale = getFeatureRect().getHeight() / fr.FONT_HEIGHT;
- GL11.glScaled(scale, scale, 0);
+ GlStateManager.scale(scale, scale, 0);
fr.drawString("Crypts: "+getTombsFound(), 0,0, this.<Color>getParameter("color").getValue().getRGB());
}
@@ -34,7 +35,7 @@ public class FeatureDungeonTombs extends GuiFeature {
public void drawDemo(float partialTicks) {
FontRenderer fr = getFontRenderer();
double scale = getFeatureRect().getHeight() / fr.FONT_HEIGHT;
- GL11.glScaled(scale, scale, 0);
+ GlStateManager.scale(scale, scale, 0);
fr.drawString("Crypts: 42", 0,0, this.<Color>getParameter("color").getValue().getRGB());
}