mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Change the overlay checked so overlays aren't rendered over the hotbar
This commit is contained in:
parent
951355bf05
commit
f1c7b2491e
1 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ public class ClientEvents {
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onGameOverlay(RenderGuiOverlayEvent.Post event) {
|
public void onGameOverlay(RenderGuiOverlayEvent.Post event) {
|
||||||
Minecraft minecraft = Minecraft.getInstance();
|
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();
|
GuiGraphics guiGraphics = event.getGuiGraphics();
|
||||||
Player player = minecraft.player;
|
Player player = minecraft.player;
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
|
|
Loading…
Reference in a new issue