diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-09-23 19:05:41 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-09-23 19:05:41 +0200 |
commit | 3176e492675f201952890bd87c278baa731dc774 (patch) | |
tree | ca79b60eb07aef2a6b6c7963a32ad57d3d088e77 /src/main/java/at/hannibal2 | |
parent | 27e5a8b563edade5bd526386ee1cae2086d3d8d2 (diff) | |
download | skyhanni-3176e492675f201952890bd87c278baa731dc774.tar.gz skyhanni-3176e492675f201952890bd87c278baa731dc774.tar.bz2 skyhanni-3176e492675f201952890bd87c278baa731dc774.zip |
hide blaze slayer weapon helper when in gui
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerWeaponHelper.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerWeaponHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerWeaponHelper.kt index 34e3690a4..cc05b08a3 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerWeaponHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerWeaponHelper.kt @@ -127,8 +127,10 @@ class BlazeSlayerWeaponHelper { @SubscribeEvent fun renderOverlay(event: RenderGameOverlayEvent.Post) { - if (!isEnabled()) return if (event.type != RenderGameOverlayEvent.ElementType.ALL) return + if (!isEnabled()) return + + if (Minecraft.getMinecraft().currentScreen != null) return val scaledResolution = ScaledResolution(Minecraft.getMinecraft()) val width = scaledResolution.scaledWidth |