aboutsummaryrefslogtreecommitdiff
path: root/loader/src/main/java/kr/syeyoung/dungeonsguide
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-01-15 23:36:43 +0900
committersyeyoung <cyoung06@naver.com>2023-01-15 23:49:48 +0900
commitfdf6772c758d78abd637cd80ea22bbd3b206f311 (patch)
treeec8c619174a50ebb3af792d48e3f5ee52d224e99 /loader/src/main/java/kr/syeyoung/dungeonsguide
parent4135184a6abf2ef919c5bc5164bd1922cd16de82 (diff)
downloadSkyblock-Dungeons-Guide-fdf6772c758d78abd637cd80ea22bbd3b206f311.tar.gz
Skyblock-Dungeons-Guide-fdf6772c758d78abd637cd80ea22bbd3b206f311.tar.bz2
Skyblock-Dungeons-Guide-fdf6772c758d78abd637cd80ea22bbd3b206f311.zip
- overlay manager
- cutting relayout requests (on tight fits) Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'loader/src/main/java/kr/syeyoung/dungeonsguide')
-rw-r--r--loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/tooltip/NotificationManager.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/tooltip/NotificationManager.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/tooltip/NotificationManager.java
index 53f9e1f9..e458383a 100644
--- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/tooltip/NotificationManager.java
+++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/tooltip/NotificationManager.java
@@ -51,6 +51,9 @@ public class NotificationManager {
@SubscribeEvent
public void onRender(RenderGameOverlayEvent.Post postRender) {
+ if (!(postRender.type == RenderGameOverlayEvent.ElementType.EXPERIENCE || postRender.type == RenderGameOverlayEvent.ElementType.JUMPBAR))
+ return;
+
ScaledResolution sr = new ScaledResolution(Minecraft.getMinecraft());
FontRenderer fr = Minecraft.getMinecraft().fontRendererObj;
int widthX = fr.getStringWidth("X");