This commit is contained in:
yrsegal@gmail.com 2022-05-24 21:01:00 -04:00
parent 4f0e390c14
commit 3efb992e92
2 changed files with 5 additions and 2 deletions

View file

@ -223,6 +223,7 @@ public class HexAdditionalRenderers {
if (text.isEmpty()) {
ps.translate(0, mc.font.lineHeight, 0);
}
ps.translate(0, 6, 0);
}
ps.popPose();

View file

@ -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) -> {