diff options
Diffstat (limited to 'src/main/java')
-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 |