summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-01 22:26:31 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-01 22:26:31 +0100
commite3b0c5d5a0d05017a3f5e8fc8ecf17580e2c5474 (patch)
treeae5b7c26ecb4be6913256ca43f477167cf890b8d /src/main/java/at/hannibal2/skyhanni/features
parent5c6ac5e309019f8216f5f020c82888d224cee3f9 (diff)
downloadskyhanni-e3b0c5d5a0d05017a3f5e8fc8ecf17580e2c5474.tar.gz
skyhanni-e3b0c5d5a0d05017a3f5e8fc8ecf17580e2c5474.tar.bz2
skyhanni-e3b0c5d5a0d05017a3f5e8fc8ecf17580e2c5474.zip
Disabled diana warp key while inside every gui.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt
index 32fa93e6d..0810d53e7 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt
@@ -8,6 +8,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.sorted
import at.hannibal2.skyhanni.utils.LorenzVec
import at.hannibal2.skyhanni.utils.SimpleTimeMark
+import net.minecraft.client.Minecraft
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import kotlin.time.Duration.Companion.seconds
@@ -22,6 +23,7 @@ class BurrowWarpHelper {
if (!config.burrowNearestWarp) return
if (event.keyCode != config.keyBindWarp) return
+ if (Minecraft.getMinecraft().currentScreen != null) return
currentWarp?.let {
if (lastWarpTime.passedSince() > 5.seconds) {