aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features/text/TextHUDFeature.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-02-27 02:02:38 +0900
committersyeyoung <cyong06@naver.com>2021-02-27 02:02:38 +0900
commitb0524098c6e6ae399fff7b94f8423e2f0d1b9567 (patch)
tree865efe368a3c0b65f83b36c991ad4d6401aa0392 /src/main/java/kr/syeyoung/dungeonsguide/features/text/TextHUDFeature.java
parenta67de30acd54d4781dded0e86e5980bbb5402809 (diff)
downloadSkyblock-Dungeons-Guide-b0524098c6e6ae399fff7b94f8423e2f0d1b9567.tar.gz
Skyblock-Dungeons-Guide-b0524098c6e6ae399fff7b94f8423e2f0d1b9567.tar.bz2
Skyblock-Dungeons-Guide-b0524098c6e6ae399fff7b94f8423e2f0d1b9567.zip
bruh
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/text/TextHUDFeature.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/text/TextHUDFeature.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/text/TextHUDFeature.java b/src/main/java/kr/syeyoung/dungeonsguide/features/text/TextHUDFeature.java
index edfe99ff..7df67515 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/text/TextHUDFeature.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/text/TextHUDFeature.java
@@ -34,7 +34,7 @@ public abstract class TextHUDFeature extends GuiFeature implements StyledTextPro
if (doesScaleWithHeight()) {
FontRenderer fr = getFontRenderer();
- double scale = getFeatureRect().getHeight() / (fr.FONT_HEIGHT* countLines(asd));
+ double scale = getFeatureRect().getRectangle().getHeight() / (fr.FONT_HEIGHT* countLines(asd));
GlStateManager.scale(scale, scale, 0);
}
StyledTextRenderer.drawTextWithStylesAssociated(getText(), 0, 0, getStylesMap());
@@ -50,7 +50,7 @@ public abstract class TextHUDFeature extends GuiFeature implements StyledTextPro
List<StyledText> asd = getDummyText();
if (doesScaleWithHeight()) {
FontRenderer fr = getFontRenderer();
- double scale = getFeatureRect().getHeight() / (fr.FONT_HEIGHT * countLines(asd));
+ double scale = getFeatureRect().getRectangle().getHeight() / (fr.FONT_HEIGHT * countLines(asd));
GlStateManager.scale(scale, scale, 0);
}
StyledTextRenderer.drawTextWithStylesAssociated(getDummyText(), 0, 0, getStylesMap());