From fdf6772c758d78abd637cd80ea22bbd3b206f311 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sun, 15 Jan 2023 23:36:43 +0900 Subject: - overlay manager - cutting relayout requests (on tight fits) Signed-off-by: syeyoung --- .../dungeonsguide/launcher/gui/tooltip/NotificationManager.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'loader') 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"); -- cgit