aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-09-24 15:56:29 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-09-24 15:56:29 +0200
commite6f2e41c299572fc117919cb4d2f2df2a7d26b43 (patch)
tree8d8568674ab844216c9cba9c0982c2910cde676a /src/main
parent34d966db485edd217fab9902995868eb4cf9d30b (diff)
downloadskyhanni-e6f2e41c299572fc117919cb4d2f2df2a7d26b43.tar.gz
skyhanni-e6f2e41c299572fc117919cb4d2f2df2a7d26b43.tar.bz2
skyhanni-e6f2e41c299572fc117919cb4d2f2df2a7d26b43.zip
fixed blaze slayer dagger display shown during tab list pressing
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt3
1 files changed, 3 insertions, 0 deletions
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