From 3efb992e9247ac98d0e65649012476f2679dcfc2 Mon Sep 17 00:00:00 2001 From: "yrsegal@gmail.com" Date: Tue, 24 May 2022 21:01:00 -0400 Subject: [PATCH] :pensive: --- .../at/petrak/hexcasting/client/HexAdditionalRenderers.java | 1 + .../petrak/hexcasting/forge/ForgeHexClientInitializer.java | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Common/src/main/java/at/petrak/hexcasting/client/HexAdditionalRenderers.java b/Common/src/main/java/at/petrak/hexcasting/client/HexAdditionalRenderers.java index 021b2756..98e6a919 100644 --- a/Common/src/main/java/at/petrak/hexcasting/client/HexAdditionalRenderers.java +++ b/Common/src/main/java/at/petrak/hexcasting/client/HexAdditionalRenderers.java @@ -223,6 +223,7 @@ public class HexAdditionalRenderers { if (text.isEmpty()) { ps.translate(0, mc.font.lineHeight, 0); } + ps.translate(0, 6, 0); } ps.popPose(); diff --git a/Forge/src/main/java/at/petrak/hexcasting/forge/ForgeHexClientInitializer.java b/Forge/src/main/java/at/petrak/hexcasting/forge/ForgeHexClientInitializer.java index ddc3d72c..34c30ea0 100644 --- a/Forge/src/main/java/at/petrak/hexcasting/forge/ForgeHexClientInitializer.java +++ b/Forge/src/main/java/at/petrak/hexcasting/forge/ForgeHexClientInitializer.java @@ -22,8 +22,10 @@ public class ForgeHexClientInitializer { evBus.addListener((RenderLevelLastEvent e) -> HexAdditionalRenderers.overlayLevel(e.getPoseStack(), e.getPartialTick())); - evBus.addListener((RenderGameOverlayEvent.PreLayer e) -> - HexAdditionalRenderers.overlayGui(e.getMatrixStack(), e.getPartialTicks())); + evBus.addListener((RenderGameOverlayEvent.PreLayer e) -> { + if (e.getType() == RenderGameOverlayEvent.ElementType.ALL) + HexAdditionalRenderers.overlayGui(e.getMatrixStack(), e.getPartialTicks()); + }); evBus.addListener((TickEvent.RenderTickEvent e) -> {