diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-11-30 15:26:38 -0500 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-11-30 15:26:38 -0500 |
commit | 60f65ce8ad7be0b4fb8451ade6b1d4de7f5acc8e (patch) | |
tree | 786f06a147cf7507b9c99e47765fbf4a4f245419 /src/main | |
parent | e46c1acdae491e30eb088298b96ec189933c5757 (diff) | |
download | SkyblockMod-60f65ce8ad7be0b4fb8451ade6b1d4de7f5acc8e.tar.gz SkyblockMod-60f65ce8ad7be0b4fb8451ade6b1d4de7f5acc8e.tar.bz2 SkyblockMod-60f65ce8ad7be0b4fb8451ade6b1d4de7f5acc8e.zip |
Add support for LabyMod + Sidebar Mod Revamp
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/me/Danker/TheMod.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/TheMod.java b/src/main/java/me/Danker/TheMod.java index 9f0e935..2d5d48c 100644 --- a/src/main/java/me/Danker/TheMod.java +++ b/src/main/java/me/Danker/TheMod.java @@ -85,6 +85,7 @@ import net.minecraft.util.StringUtils; import net.minecraft.util.Vec3; import net.minecraft.world.World; import net.minecraftforge.client.ClientCommandHandler; +import net.minecraftforge.client.GuiIngameForge; import net.minecraftforge.client.event.ClientChatReceivedEvent; import net.minecraftforge.client.event.GuiScreenEvent; import net.minecraftforge.client.event.RenderGameOverlayEvent; @@ -1206,7 +1207,7 @@ public class TheMod @SubscribeEvent public void renderPlayerInfo(final RenderGameOverlayEvent.Post event) { - if (usingLabymod) return; + if (usingLabymod && !(Minecraft.getMinecraft().ingameGUI instanceof GuiIngameForge)) return; if (event.type != RenderGameOverlayEvent.ElementType.EXPERIENCE && event.type != RenderGameOverlayEvent.ElementType.JUMPBAR) return; renderEverything(); } |