From f1c7b2491e7245569fda591957582405df439a5a Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Sat, 9 Mar 2024 16:31:10 +0100 Subject: [PATCH] Change the overlay checked so overlays aren't rendered over the hotbar --- .../de/ellpeck/actuallyadditions/mod/event/ClientEvents.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java b/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java index 33cf603f0..06837830f 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java @@ -165,7 +165,7 @@ public class ClientEvents { @SubscribeEvent public void onGameOverlay(RenderGuiOverlayEvent.Post event) { Minecraft minecraft = Minecraft.getInstance(); - if (event.getOverlay() == GuiOverlayManager.findOverlay(new ResourceLocation("crosshair")) && minecraft.screen == null) { //ALL + if (event.getOverlay() == GuiOverlayManager.findOverlay(new ResourceLocation("portal")) && minecraft.screen == null) { //ALL GuiGraphics guiGraphics = event.getGuiGraphics(); Player player = minecraft.player; if (player == null) { @@ -202,7 +202,7 @@ public class ClientEvents { if (!stack.isEmpty() && stack.getItem() == CommonConfig.Other.redstoneConfigureItem) { expl = ChatFormatting.GREEN + I18n.get("info." + ActuallyAdditions.MODID + ".redstoneMode.validItem"); } else { - expl = ChatFormatting.GRAY.toString() + ChatFormatting.ITALIC + I18n.get("info." + ActuallyAdditions.MODID + ".redstoneMode.invalidItem", I18n.get(CommonConfig.Other.redstoneConfigureItem.asItem().getDescriptionId())); + expl = ChatFormatting.GRAY.toString() + ChatFormatting.ITALIC + I18n.get("info." + ActuallyAdditions.MODID + ".redstoneMode.invalidItem", I18n.get(CommonConfig.Other.redstoneConfigureItem.asItem().getDescriptionId())); } guiGraphics.drawString(font, expl, (int) (event.getWindow().getGuiScaledWidth() / 2f + 5), (int) (event.getWindow().getGuiScaledHeight() / 2f + 15), 0xFFFFFF); }