aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-02 18:07:27 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-02 18:07:27 +0100
commitebefae8ba16605304779618571485b07f91bb2f4 (patch)
tree89c3b99cd2f3f692a60b0823e3826e486d650394 /src/main/java/at/hannibal2
parentad12389a72e0b65103cb256a8e4a0f13d066bc59 (diff)
downloadskyhanni-ebefae8ba16605304779618571485b07f91bb2f4.tar.gz
skyhanni-ebefae8ba16605304779618571485b07f91bb2f4.tar.bz2
skyhanni-ebefae8ba16605304779618571485b07f91bb2f4.zip
Disabled Diana Inquis Share key while inside any gui. - hannibal2
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt
index 0c4e031f9..e466c88a0 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt
@@ -20,6 +20,7 @@ import at.hannibal2.skyhanni.utils.SoundUtils
import at.hannibal2.skyhanni.utils.StringUtils.cleanPlayerName
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import at.hannibal2.skyhanni.utils.getLorenzVec
+import net.minecraft.client.Minecraft
import net.minecraft.client.entity.EntityOtherPlayerMP
import net.minecraft.network.play.server.S02PacketChat
import net.minecraftforge.event.entity.EntityJoinWorldEvent
@@ -165,6 +166,7 @@ object InquisitorWaypointShare {
@SubscribeEvent
fun onKeyClick(event: LorenzKeyPressEvent) {
if (!isEnabled()) return
+ if (Minecraft.getMinecraft().currentScreen != null) return
if (event.keyCode == config.keyBindShare) sendInquisitor()
}