Change the overlay checked so overlays aren't rendered over the hotbar

This commit is contained in:
Mrbysco 2024-03-09 16:31:10 +01:00
parent 951355bf05
commit f1c7b2491e

View file

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