aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-11-30 15:26:38 -0500
committerbowser0000 <bowser0000@gmail.com>2020-11-30 15:26:38 -0500
commit60f65ce8ad7be0b4fb8451ade6b1d4de7f5acc8e (patch)
tree786f06a147cf7507b9c99e47765fbf4a4f245419 /src/main/java/me/Danker
parente46c1acdae491e30eb088298b96ec189933c5757 (diff)
downloadSkyblockMod-60f65ce8ad7be0b4fb8451ade6b1d4de7f5acc8e.tar.gz
SkyblockMod-60f65ce8ad7be0b4fb8451ade6b1d4de7f5acc8e.tar.bz2
SkyblockMod-60f65ce8ad7be0b4fb8451ade6b1d4de7f5acc8e.zip
Add support for LabyMod + Sidebar Mod Revamp
Diffstat (limited to 'src/main/java/me/Danker')
-rw-r--r--src/main/java/me/Danker/TheMod.java3
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();
}