From e6f2e41c299572fc117919cb4d2f2df2a7d26b43 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 24 Sep 2022 15:56:29 +0200 Subject: fixed blaze slayer dagger display shown during tab list pressing --- .../skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt index b9022842b..2ca68c954 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt @@ -14,6 +14,7 @@ import net.minecraft.network.play.server.S45PacketTitle import net.minecraftforge.client.event.RenderGameOverlayEvent import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import net.minecraftforge.fml.common.gameevent.TickEvent +import org.lwjgl.input.Keyboard class BlazeSlayerDaggerHelper { @@ -139,6 +140,8 @@ class BlazeSlayerDaggerHelper { if (!isEnabled()) return if (Minecraft.getMinecraft().currentScreen != null) return + if (Keyboard.isKeyDown(Minecraft.getMinecraft().gameSettings.keyBindPlayerList.keyCode)) return + val scaledResolution = ScaledResolution(Minecraft.getMinecraft()) val width = scaledResolution.scaledWidth -- cgit